Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618702 - app-admin/logrotate executable installs into /usr/bin instead of /usr/sbin
Summary: app-admin/logrotate executable installs into /usr/bin instead of /usr/sbin
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Chema Alonso Josa (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-17 00:09 UTC by rjgleits
Modified: 2018-05-04 20:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info logrotate (logrotate_emerge--info.txt,5.25 KB, text/plain)
2017-05-17 00:09 UTC, rjgleits
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rjgleits 2017-05-17 00:09:15 UTC
Created attachment 472874 [details]
emerge --info logrotate

I notice that the logrotate executable is installed into /usr/bin. The
standard selinux policy (i.e., reference policy that is also used in
gentoo) expects it to be installed in /usr/sbin. If logrotate isn't
there, it doesn't get assigned access rights it needs and as a result
doesn't work if you are in enforcing mode. According to
the FHS, I would say that every user does not need to use logrotate, it
is used by the system and admins, and therefore should be in /usr/sbin.
Can I humbly request that the ebuild be changed so that logrotate
installs into /usr/sbin? Or whatever it is that determines where it is
installed. 

Best Wishes,

Bob Gleitsmann
Comment 1 Chema Alonso Josa (RETIRED) gentoo-dev 2017-06-20 15:55:13 UTC
Thanks for the report, one year ago logrotate binary was move from /usr/sbin to /usr/bin for a normal user to use it:

https://bugs.gentoo.org/show_bug.cgi?id=588156

@hanno: any situation in which a normal user should run logrotate?
Comment 2 Chema Alonso Josa (RETIRED) gentoo-dev 2018-05-04 20:26:16 UTC
No response in a long time. Closing...