Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 310907 Details for
Bug 414779
init (libselinux) wants to mount on /sys/fs/selinux before /sys is mounted
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible libselinux patch
libselinux-2.1.9-mountsys.patch (text/plain), 957 bytes, created by
Sven Vermeulen (RETIRED)
on 2012-05-05 18:54:54 UTC
(
hide
)
Description:
Possible libselinux patch
Filename:
MIME Type:
Creator:
Sven Vermeulen (RETIRED)
Created:
2012-05-05 18:54:54 UTC
Size:
957 bytes
patch
obsolete
>diff -ur libselinux-2.1.9.orig/src/load_policy.c libselinux-2.1.9/src/load_policy.c >--- libselinux-2.1.9.orig/src/load_policy.c 2012-05-05 10:33:06.130719282 +0200 >+++ libselinux-2.1.9/src/load_policy.c 2012-05-05 10:43:45.024720646 +0200 >@@ -370,8 +370,16 @@ > * mount it if present for use in the calls below. > */ > char *mntpoint = NULL; >- if (mount(SELINUXFS, SELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) { >- mntpoint = SELINUXMNT; >+ /* First make sure /sys is mounted */ >+ if (mount("sysfs", "/sys", "sysfs", 0, 0) == 0 || errno == EBUSY) { >+ if (mount(SELINUXFS, SELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) { >+ mntpoint = SELINUXMNT; >+ } else { >+ /* check old mountpoint */ >+ if (mount(SELINUXFS, OLDSELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) { >+ mntpoint = OLDSELINUXMNT; >+ } >+ } > } else { > /* check old mountpoint */ > if (mount(SELINUXFS, OLDSELINUXMNT, SELINUXFS, 0, 0) == 0 || errno == EBUSY) {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 414779
: 310907