Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionJoão Avelino Bellomo Filho
2015-11-13 16:53:50 UTC
Description of problem:
Each time the 'root' login from GUI a new restorecond process is created.
Version-Release number of selected component (if applicable):
RHEL 6.7
How reproducible:
Steps to Reproduce:
1. Login on a RHEL 6.7 Desktop from GUI.
2. Logout
3. Login again on a RHEL 6.7 Desktop from GUI.
4. Open a terminal window and execute the follow command line:
ps auxww | grep restorecond
Actual results:
. There are two 'restorecond -u' processes running:
root 2607 0.0 2.3 49932 23876 ? Ss 14:45 0:00 /usr/sbin/restorecond -u
root 3143 0.0 2.3 49932 23636 ? Ss 14:46 0:00 /usr/sbin/restorecond -u
root 3214 0.0 0.0 103312 864 pts/0 S+ 14:46 0:00 grep restorecond
Expected results:
. Should be only one 'restorecond -u' process:
root 3143 0.0 2.3 49932 23636 ? Ss 14:46 0:00 /usr/sbin/restorecond -u
root 3214 0.0 0.0 103312 864 pts/0 S+ 14:46 0:00 grep restorecond
Additional info:
The issue happens due to the XDG auto start configuration. The '/etc/xdg/autostart/restorecond.desktop' configures the automatic execution of 'restorecond' command as user mode for all users ('root' included). But as the 'root' user the process behavior is different. It does not stop when the 'root' session is closed. So, each time the 'root' login a new session a new 'restorecond' process is created.
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
Description of problem: Each time the 'root' login from GUI a new restorecond process is created. Version-Release number of selected component (if applicable): RHEL 6.7 How reproducible: Steps to Reproduce: 1. Login on a RHEL 6.7 Desktop from GUI. 2. Logout 3. Login again on a RHEL 6.7 Desktop from GUI. 4. Open a terminal window and execute the follow command line: ps auxww | grep restorecond Actual results: . There are two 'restorecond -u' processes running: root 2607 0.0 2.3 49932 23876 ? Ss 14:45 0:00 /usr/sbin/restorecond -u root 3143 0.0 2.3 49932 23636 ? Ss 14:46 0:00 /usr/sbin/restorecond -u root 3214 0.0 0.0 103312 864 pts/0 S+ 14:46 0:00 grep restorecond Expected results: . Should be only one 'restorecond -u' process: root 3143 0.0 2.3 49932 23636 ? Ss 14:46 0:00 /usr/sbin/restorecond -u root 3214 0.0 0.0 103312 864 pts/0 S+ 14:46 0:00 grep restorecond Additional info: The issue happens due to the XDG auto start configuration. The '/etc/xdg/autostart/restorecond.desktop' configures the automatic execution of 'restorecond' command as user mode for all users ('root' included). But as the 'root' user the process behavior is different. It does not stop when the 'root' session is closed. So, each time the 'root' login a new session a new 'restorecond' process is created.