Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 71705 Details for
Bug 110857
SELinux updates
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ebuild.sh-selinux.diff
ebuild.sh-selinux.diff (text/plain), 1.27 KB, created by
Chris PeBenito (RETIRED)
on 2005-10-29 19:34:18 UTC
(
hide
)
Description:
ebuild.sh-selinux.diff
Filename:
MIME Type:
Creator:
Chris PeBenito (RETIRED)
Created:
2005-10-29 19:34:18 UTC
Size:
1.27 KB
patch
obsolete
>--- ebuild.sh.orig 2005-10-13 20:03:15.373150530 -0400 >+++ ebuild.sh 2005-10-29 22:26:59.056355286 -0400 >@@ -1299,20 +1299,19 @@ > fi > > # SELinux file labeling (needs to always be last in dyn_preinst) >- if useq selinux; then >+ if hasq selinux $FEATURES; then > # only attempt to label if setfiles is executable > # and 'context' is available on selinuxfs. >- if [ -f /selinux/context -a -x /usr/sbin/setfiles ]; then >+ if [ -f /selinux/context -a -x /usr/sbin/setfiles -a -x /usr/sbin/selinuxconfig ]; then > echo ">>> Setting SELinux security labels" >- if [ -f ${POLICYDIR}/file_contexts/file_contexts ]; then >- cp -f "${POLICYDIR}/file_contexts/file_contexts" "${T}" >- else >- make -C "${POLICYDIR}" FC=${T}/file_contexts "${T}/file_contexts" >- fi >+ ( >+ eval "$(/usr/sbin/selinuxconfig)" || \ >+ die "Failed to determine SELinux policy paths."; >+ >+ addwrite /selinux/context; > >- addwrite /selinux/context >- /usr/sbin/setfiles -r "${IMAGE}" "${T}/file_contexts" "${IMAGE}" \ >- || die "Failed to set SELinux security labels." >+ /usr/sbin/setfiles "${file_contexts_path}" -r "${IMAGE}" "${IMAGE}"; >+ ) || die "Failed to set SELinux security labels." > else > # nonfatal, since merging can happen outside a SE kernel > # like during a recovery situation
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 110857
:
71704
| 71705