Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 239317 Details for
Bug 326697
sys-apps/sysvinit-2.88 fails to load selinux policy
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
sysvinit patch for selinux
sysvinit-selinux.patch (text/plain), 1.01 KB, created by
Chris Richards
on 2010-07-18 23:27:53 UTC
(
hide
)
Description:
sysvinit patch for selinux
Filename:
MIME Type:
Creator:
Chris Richards
Created:
2010-07-18 23:27:53 UTC
Size:
1.01 KB
patch
obsolete
>Index: src/init.c >=================================================================== >--- src/init.c (revision 89) >+++ src/init.c (working copy) >@@ -54,10 +54,6 @@ > > #ifdef WITH_SELINUX > # include <selinux/selinux.h> >-# include <sys/mount.h> >-# ifndef MNT_DETACH /* present in glibc 2.10, missing in 2.7 */ >-# define MNT_DETACH 2 >-# endif > #endif > > #ifdef __i386__ >@@ -2872,11 +2868,9 @@ int main(int argc, char **argv) > > #ifdef WITH_SELINUX > if (getenv("SELINUX_INIT") == NULL) { >- const int rc = mount("proc", "/proc", "proc", 0, 0); >- if (is_selinux_enabled() > 0) { >- putenv("SELINUX_INIT=YES"); >- if (rc == 0) umount2("/proc", MNT_DETACH); >+ if (is_selinux_enabled() != 1) { > if (selinux_init_load_policy(&enforce) == 0) { >+ putenv("SELINUX_INIT=YES"); > execv(myname, argv); > } else { > if (enforce > 0) { >@@ -2887,7 +2881,6 @@ int main(int argc, char **argv) > } > } > } >- if (rc == 0) umount2("/proc", MNT_DETACH); > } > #endif > /* Start booting. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 326697
:
237333
|
237335
| 239317