summaryrefslogtreecommitdiffstats
path: root/libmount/src/mountP.h
diff options
context:
space:
mode:
authorKarel Zak2013-07-02 10:46:10 +0200
committerKarel Zak2013-07-02 10:46:10 +0200
commit2c6b25f01802808b142d450af3352605720899da (patch)
tree560ff39da7ebe2bd9d97549d175960f2ea33e9dc /libmount/src/mountP.h
parentlib/canonical: use realpath() from libc (diff)
downloadkernel-qcow2-util-linux-2c6b25f01802808b142d450af3352605720899da.tar.gz
kernel-qcow2-util-linux-2c6b25f01802808b142d450af3352605720899da.tar.xz
kernel-qcow2-util-linux-2c6b25f01802808b142d450af3352605720899da.zip
libmount: be more restrictive about valid tag names
# mount DUMMY=filename.img /mnt The 'DUMMY=filename.img' is a filename and should not be interpreted as tag name. The valid tag names are LABEL, UUID, PARTLABEL and PARTUUID only. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/mountP.h')
-rw-r--r--libmount/src/mountP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h
index e064a6849..7b0848f92 100644
--- a/libmount/src/mountP.h
+++ b/libmount/src/mountP.h
@@ -136,6 +136,8 @@ extern int startswith(const char *s, const char *sx)
extern char *stripoff_last_component(char *path);
+extern int mnt_valid_tagname(const char *tagname);
+
extern int is_file_empty(const char *name);
extern int mkdir_p(const char *path, mode_t mode);