Cannot run ldconfig in a home directory
I am playing around with the source distribution of the audit package. I modified some code, but I don't want to install the modified version in the usual locations, just in case I break something. So I configured the source distribution using:
$ ./configure --prefix=$HOME/opt/audit
and then did the usual "make; make install".
The audit package contains shared libraries, and the installation scripts run ldconfig using the -n option. This option ensures ldconfig will not process the trusted directories (/usr/lib and /lib) or those specified in /etc/ld.so.conf, thus allowing it to be run by an unprivileged user; however, the current SELinux for Fedora 7 prevents this usage of ldconfig. Setroubleshoot reports:
Summary:
SELinux is preventing /sbin/ldconfig (ldconfig_t) "search" to home (home_root_t).
Detailed Description:
SELinux denied access requested by /sbin/ldconfig. It is not expected that this access is required by /sbin/ldconfig and this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
Obviously, it is easy enough for me to disable SELinux while playing with the audit sources, but it seems to that with this policy, if I were working on a machine I did not control, I wouldn't be able properly test an installation.
John
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Hi,
Quoted 27 lines · John D. Ramsdell
I am playing around with the source distribution of the audit package. I modified some code, but I don't want to install the modified version in the usual locations, just in case I break something. So I configured the source distribution using:
$ ./configure --prefix=$HOME/opt/auditand then did the usual "make; make install".
The audit package contains shared libraries, and the installation scripts run ldconfig using the -n option. This option ensures ldconfig will not process the trusted directories (
/usr/liband /lib) or those specified in/etc/ld.so.conf, thus allowing it to be run by an unprivileged user; however, the current SELinux for Fedora 7 prevents this usage of ldconfig. Setroubleshoot reports:Summary:
SELinux is preventing/sbin/ldconfig(ldconfig_t) "search" to home (home_root_t).Detailed Description:
SELinux denied access requested by/sbin/ldconfig. It is not expected that this access is required by/sbin/ldconfigand this access may signal an intrusion attempt. It is also possible that the specific version or configuration of the application is causing it to require additional access.
Quoted 4 lines
Obviously, it is easy enough for me to disable SELinux while playing with the audit sources, but it seems to that with this policy, if I were working on a machine I did not control, I wouldn't be able properly test an installation.
man audit2allow ;)
Quoted 3 lines
John
Regards,
Michal
Signature · 7 lines
LOG http://www.stardust.webpages.pl/log/ -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 4 lines · Michal Piotrowski
Quoted 2 lines · John D. Ramsdell
Obviously, it is easy enough for me to disable SELinux while playing with the audit sources, but it seems to that with this
This should have said, "but it seems to me that with this"...
Quoted 4 lines
Quoted 2 lines
policy, if I were working on a machine I did not control, I wouldn't be able properly test an installation.
man audit2allow ;)
By "not control", I meant not having root privileges.
John
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.