Bug 1281877
Summary: | a new restorecond process is created each time the root user logs in from gui | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | João Avelino Bellomo Filho <jbellomo> |
Component: | policycoreutils | Assignee: | Petr Lautrbach <plautrba> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.7 | CC: | dwalsh, lvrabec, mgrepl, mmalik, plautrba, ssekidde |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | policycoreutils-2.0.83-26.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-10 17:03:35 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
João Avelino Bellomo Filho
2015-11-13 16:53:50 UTC
I can confirm that it does not happen for common users (including confined users), but it happens for the root user. After 3 logins and 3 logouts as root you can see following: # ps -efZ | grep rest unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 17953 1 0 18:05 ? 00:00:00 /usr/sbin/restorecond -u unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 18751 1 0 18:06 ? 00:00:00 /usr/sbin/restorecond -u unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 19868 1 0 18:08 ? 00:00:00 /usr/sbin/restorecond -u unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 20030 9894 0 18:08 pts/0 00:00:00 grep rest # We can treat root as a regular user when -u is used: --- a/restorecond/restorecond.c +++ b/restorecond/restorecond.c @@ -205,9 +205,11 @@ int main(int argc, char **argv) exitApp("getpwuid"); homedir = pwd->pw_dir; + + if (run_as_user) + return server(master_fd, user_watch_file); + if (uid != 0) { - if (run_as_user) - return server(master_fd, user_watch_file); if (start() != 0) return server(master_fd, user_watch_file); return 0; Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0791.html |