diff options
Diffstat (limited to 'libselinux/src/deny_unknown.c')
-rw-r--r-- | libselinux/src/deny_unknown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libselinux/src/deny_unknown.c b/libselinux/src/deny_unknown.c index c93998a0..77d04e37 100644 --- a/libselinux/src/deny_unknown.c +++ b/libselinux/src/deny_unknown.c @@ -21,7 +21,7 @@ int security_deny_unknown(void) } snprintf(path, sizeof(path), "%s/deny_unknown", selinux_mnt); - fd = open(path, O_RDONLY); + fd = open(path, O_RDONLY | O_CLOEXEC); if (fd < 0) return -1; |