summaryrefslogtreecommitdiff
path: root/src/fstab-generator
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-05-31 12:40:20 +0200
committerKay Sievers <kay@vrfy.org>2012-05-31 12:40:20 +0200
commitd2e54fae5ca7a0f71b5ac8b356a589ff0a09ea0a (patch)
treeb1a4773022e0904f6e023bcff832d897ed46c893 /src/fstab-generator
parent051d68786bd5bfe87e7cc0c1d68ec4be83eb662a (diff)
mkdir: append _label to all mkdir() calls that explicitly set the selinux context
Diffstat (limited to 'src/fstab-generator')
-rw-r--r--src/fstab-generator/fstab-generator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index 8676a20539..8419a0c5b4 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -151,7 +151,7 @@ static int add_swap(const char *what, struct mntent *me) {
goto finish;
}
- mkdir_parents(lnk, 0755);
+ mkdir_parents_label(lnk, 0755);
if (symlink(unit, lnk) < 0) {
log_error("Failed to create symlink: %m");
r = -errno;
@@ -174,7 +174,7 @@ static int add_swap(const char *what, struct mntent *me) {
goto finish;
}
- mkdir_parents(lnk, 0755);
+ mkdir_parents_label(lnk, 0755);
if (symlink(unit, lnk) < 0) {
log_error("Failed to create symlink: %m");
r = -errno;
@@ -326,7 +326,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
goto finish;
}
- mkdir_parents(lnk, 0755);
+ mkdir_parents_label(lnk, 0755);
if (symlink(unit, lnk) < 0) {
log_error("Failed to create symlink: %m");
r = -errno;
@@ -352,7 +352,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
goto finish;
}
- mkdir_parents(lnk, 0755);
+ mkdir_parents_label(lnk, 0755);
if (symlink(unit, lnk) < 0) {
log_error("Failed to creat symlink: %m");
r = -errno;
@@ -413,7 +413,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
goto finish;
}
- mkdir_parents(lnk, 0755);
+ mkdir_parents_label(lnk, 0755);
if (symlink(automount_unit, lnk) < 0) {
log_error("Failed to create symlink: %m");
r = -errno;