Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 226051 Details for
Bug 329501
sabayon is not working with SELinux well.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Patch to fix selinux file contexts.
sabayon-selinux.patch (text/x-patch), 1.78 KB, created by
Daniel Walsh
on 2007-10-12 19:54:54 UTC
(
hide
)
Description:
Patch to fix selinux file contexts.
Filename:
MIME Type:
Creator:
Daniel Walsh
Created:
2007-10-12 19:54:54 UTC
Size:
1.78 KB
patch
obsolete
>diff -up sabayon-2.20.1/lib/userdb.py.selinux sabayon-2.20.1/lib/userdb.py >--- sabayon-2.20.1/lib/userdb.py.selinux 2007-09-19 20:21:09.000000000 -0400 >+++ sabayon-2.20.1/lib/userdb.py 2007-10-12 15:43:14.000000000 -0400 >@@ -28,6 +28,7 @@ import random > import ldap > import socket > import debuglog >+import selinux > > defaultConf="""<profiles> > <default profile=""/> >@@ -353,7 +354,12 @@ class UserDatabase: > > raise UserDatabaseException( > _("Failed to save UserDatabase to %s") % filename) >- >+ >+ if selinux.is_selinux_enabled() > 0: >+ rc, con = selinux.matchpathcon(filename, 0) >+ if rc == 0: >+ selinux.setfilecon(filename, con) >+ > self.modified = 0 > > def set_default_profile (self, profile): >diff -up sabayon-2.20.1/admin-tool/profilesdialog.py.selinux sabayon-2.20.1/admin-tool/profilesdialog.py >--- sabayon-2.20.1/admin-tool/profilesdialog.py.selinux 2007-09-19 20:19:27.000000000 -0400 >+++ sabayon-2.20.1/admin-tool/profilesdialog.py 2007-10-12 15:43:14.000000000 -0400 >@@ -34,6 +34,7 @@ import protosession > import debuglog > import errors > from config import * >+import selinux > > def dprint (fmt, *args): > debuglog.debug_log (False, debuglog.DEBUG_LOG_DOMAIN_ADMIN_TOOL, fmt % args) >@@ -110,6 +111,11 @@ class Session (gobject.GObject): > def __copy_from_user (self, user_path, profile_path): > os.chown (user_path, os.geteuid (), os.getegid ()) > shutil.move (user_path, profile_path) >+ if selinux.is_selinux_enabled() > 0: >+ rc, con = selinux.matchpathcon(profile_path, 0) >+ if rc == 0: >+ selinux.setfilecon(profile_path, con) >+ > dprint ("Moved %s back from %s", user_path, profile_path) > > @errors.checked_callback (debuglog.DEBUG_LOG_DOMAIN_ADMIN_TOOL)
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 329501
: 226051