Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...
|
Re: fedora-selinux-list Digest, Vol 20, Issue 18: msg#00144
|
Subject: |
Re: fedora-selinux-list Digest, Vol 20, Issue 18 |
Jayendren Anand Maduray wrote:
Hi!
Just noticed more errors!
Here is the output:
audit(1130392269.590:0): avc: denied { append } for pid=3218
exe=/usr/sbin/squid path=/var/log/squid/squid.out dev=hda8 ino=755115
scontext=user_u:system_r:squid_t tcontext=system_u:object_r:bin_t
tclass=file
audit(1130392269.590:0): avc: denied { append } for pid=3218
exe=/usr/sbin/squid path=/var/log/squid/squid.out dev=hda8 ino=755115
scontext=user_u:system_r:squid_t tcontext=system_u:object_r:bin_t
tclass=file
audit(1130392270.019:0): avc: denied { getattr } for pid=3218
exe=/usr/sbin/squid path=/usr/local/squidclamav/bin/squidclamav
dev=hda8 ino=185872 scontext=user_u:system_r:squid_t
tcontext=system_u:object_r:bin_t tclass=file
Looks like you labeled /var/log/squid incorrectly. restorecon -R -v
/var/log
Also:
[root@shiva jay]# ls -lZ /var/log/squid/
-rw-r--r-- squid squid system_u:object_r:bin_t access.log
-rw-r--r-- squid squid system_u:object_r:bin_t cache.log
-rw-r--r-- squid squid system_u:object_r:bin_t squid.out
-rw-r--r-- squid squid system_u:object_r:bin_t store.log
[root@shiva jay]# service squid restart
Stopping squid: /etc/init.d/squid: line 82: 5108
Aborted $SQUID -k check >>/var/log/squid/squid.out 2>&1
[FAILED]
Starting squid: /etc/init.d/squid: line 53: 5109
Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out
2>&1
[FAILED]
Please note that i re-enabled SElinux for squid via
system-config-security in FC3.
Any help will be appreciated.
God bless.
Daniel J Walsh wrote:
Jayendren Anand Maduray wrote:
Thanks for you help, again!
Here is the output:
[root@shiva jay]# chcon -t bin_t /usr/local/squidclamav/bin/*
You have mail in /var/spool/mail/jay
[root@shiva jay]#
[root@shiva jay]# ls -lZ /usr/local/squidclamav/bin
-rwxr-xr-x root root system_u:object_r:bin_t
squidclamav
I will reboot, and check the system as it starts up.
Currently, i use system-config-securitylevel to re-enable squid.
Which file can i edit to do this from the command line?
setsebool and getsebool are command line tools for manipulating booleans
setsebool -P squid_disable_trans=1
Enables SELinux enforcement and writes this to the defaults file
/etc/selinux/SELINUXTYPE/booleans.local
--
|
| |