mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-12 16:20:06 +00:00
Don't fail in makedb if SELinux is disabled
This commit is contained in:
parent
bc8db248ba
commit
3d7ba52b68
@ -1,3 +1,8 @@
|
||||
2011-11-03 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* nss/makedb.c (set_file_creation_context): Do nothing if SELinux
|
||||
is disabled.
|
||||
|
||||
2011-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
* bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
|
||||
|
@ -842,7 +842,7 @@ set_file_creation_context (const char *outname, mode_t mode)
|
||||
|
||||
/* Check if SELinux is enabled, and remember. */
|
||||
if (enabled == 0)
|
||||
enabled = is_selinux_enabled ();
|
||||
enabled = is_selinux_enabled () ? 1 : -1;
|
||||
if (enabled < 0)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user