mkdir: append _label to all mkdir() calls that explicitly set the selinux context
This commit is contained in:
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
|
||||
mode |= S_IFCHR;
|
||||
|
||||
if (strcmp(action, "remove") != 0) {
|
||||
mkdir_parents(udev_device_get_devnode(dev), 0755);
|
||||
mkdir_parents_label(udev_device_get_devnode(dev), 0755);
|
||||
mknod(udev_device_get_devnode(dev), mode, udev_device_get_devnum(dev));
|
||||
} else {
|
||||
unlink(udev_device_get_devnode(dev));
|
||||
|
||||
Reference in New Issue
Block a user