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 295515 Details for
Bug 433757
useradd assignes incorrect SELinux type to /var/spool/mail/newuser
[?]
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]
Patch to fix /var/spool/mail labeling and useradd -Z user_u dwalsh problem
diff (text/plain), 1.24 KB, created by
Daniel Walsh
on 2008-02-21 15:05:20 UTC
(
hide
)
Description:
Patch to fix /var/spool/mail labeling and useradd -Z user_u dwalsh problem
Filename:
MIME Type:
Creator:
Daniel Walsh
Created:
2008-02-21 15:05:20 UTC
Size:
1.24 KB
patch
obsolete
>diff -up shadow-4.1.0/src/useradd.c~ shadow-4.1.0/src/useradd.c >--- shadow-4.1.0/src/useradd.c~ 2008-02-21 09:46:00.000000000 -0500 >+++ shadow-4.1.0/src/useradd.c 2008-02-21 10:01:36.000000000 -0500 >@@ -1680,6 +1680,10 @@ static void create_home (void) > audit_logger (AUDIT_USER_CHAUTHTOK, Prog, > "adding home directory", user_name, user_id, 1); > #endif >+#ifdef WITH_SELINUX >+ /* Reset SELinux to create files with default contexts */ >+ setfscreatecon (NULL); >+#endif > } > } > >@@ -1894,8 +1898,6 @@ int main (int argc, char **argv) > > usr_update (); > >- selinux_update_mapping(); >- > if (mflg) { > create_home (); > if (home_added) >@@ -1925,6 +1927,8 @@ int main (int argc, char **argv) > > close_files (); > >+ selinux_update_mapping(); >+ > nscd_flush_cache ("passwd"); > nscd_flush_cache ("group"); > >diff -up shadow-4.1.0/libmisc/copydir.c~ shadow-4.1.0/libmisc/copydir.c >--- shadow-4.1.0/libmisc/copydir.c~ 2008-02-21 09:46:00.000000000 -0500 >+++ shadow-4.1.0/libmisc/copydir.c 2008-02-21 10:00:12.000000000 -0500 >@@ -400,6 +400,10 @@ int copy_tree (const char *src_root, con > src_orig = 0; > dst_orig = 0; > } >+#ifdef WITH_SELINUX >+ /* Reset SELinux to create files with default contexts */ >+ setfscreatecon (NULL); >+#endif > return err ? -1 : 0; > } >
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 433757
: 295515