Missing file modes in learnt ACL
Posted: Thu Nov 07, 2002 6:40 am
Hi,
Firstly I wanted to congratulate you on a great piece of software. I've been running 1.9.4 on my FTP server since May with no problems whatsoever.
I'm currently setting up 1.9.7d on my WWW server, but there's something I don't understand:
I setup a least-privilege ACL for httpd as shown in the docs and started learning. But some of the file modes seem to be missing from the ACL. The docs indicate that this means no access should be granted to the file. I can see how it makes sense to have this for /, to create an inheritable default. But what about the others? Could you explain it to me?
/usr/sbin/httpd o {
829648 w # I assume this is an inode number (/var/run)
/var/www/html/vicorp.com/usage r
/var/www/html/vicorp.com/slides r
/var/www/html/vicorp.com/logos rx
/var/www/html/vicorp.com/img rx
/var/www/html/vicorp.com rx
/var/run/httpd.pid w
/var/run w
/var/log/httpd/ssl_scache.pag rw
/var/log/httpd/ssl_scache.dir rw
/var/log/httpd/ssl_request_log a
/var/log/httpd/ssl_mutex.3149 w
/var/log/httpd/ssl_mutex.22998 w
/var/log/httpd/ssl_engine_log a
/var/log/httpd/error_log a
/var/log/httpd/access_log a
/var/log/httpd rw
/usr/sbin/suexec # missing file mode
/usr/lib/php4/ldap.so rx
/usr/lib/perl5/site_perl/5.6.0 # missing file mode
/usr/lib/locale/en_GB.iso885915/LC_MESSAGES/SYS_LC_MESSAGES rx
/usr/lib/locale/en_GB.iso885915/LC_MESSAGES r
/usr/lib/locale/en_GB.iso885915 rx
/usr/lib rx
/usr/lib/apache/mod_vhost_al4/ldap.so # missing file mode
/usr/lib/apache rx
/proc/sys/kernel/version r
/lib rx
/lib/ld-2.2.5.so x
/lib/i686/libpthread-0.9.so rx
/lib/i686/libm-2.2.5.so rx
/lib/i686/libc-2.2.5.so rx
/etc/ld.so.cache rx
/etc/httpd/conf/ssl.key/server.key # missing file mode
/etc/httpd/conf/ssl.crt/server.crt # missing file mode
/etc/httpd/conf/srm.conf r
/etc/httpd/conf/httpd.conf r
/etc/httpd/conf/access.conf r
/etc/httpd # missing file mode
/etc r
/dev/null rw
/dev # missing file mode
/SYSV00000000 x
/usr/sbin/httpd x
/ # missing file mode
-CAP_ALL
+CAP_CHOWN
+CAP_DAC_OVERRIDE
+CAP_KILL
+CAP_SETGID
+CAP_SETUID
+CAP_NET_BIND_SERVICE
RES_FSIZE 2555531 2555531
RES_DATA 919312 919312
RES_STACK 17384 17384
RES_RSS 0 0
RES_NPROC 33 33
RES_NOFILE 25 20
RES_MEMLOCK 0 0
RES_AS 90624288 90624288
RES_LOCKS 3 3
connect {
disabled
}
bind {
0.0.0.0:80 stream tcp
0.0.0.0:443 stream tcp
}
}
Phil Skuse.
Firstly I wanted to congratulate you on a great piece of software. I've been running 1.9.4 on my FTP server since May with no problems whatsoever.
I'm currently setting up 1.9.7d on my WWW server, but there's something I don't understand:
I setup a least-privilege ACL for httpd as shown in the docs and started learning. But some of the file modes seem to be missing from the ACL. The docs indicate that this means no access should be granted to the file. I can see how it makes sense to have this for /, to create an inheritable default. But what about the others? Could you explain it to me?
/usr/sbin/httpd o {
829648 w # I assume this is an inode number (/var/run)
/var/www/html/vicorp.com/usage r
/var/www/html/vicorp.com/slides r
/var/www/html/vicorp.com/logos rx
/var/www/html/vicorp.com/img rx
/var/www/html/vicorp.com rx
/var/run/httpd.pid w
/var/run w
/var/log/httpd/ssl_scache.pag rw
/var/log/httpd/ssl_scache.dir rw
/var/log/httpd/ssl_request_log a
/var/log/httpd/ssl_mutex.3149 w
/var/log/httpd/ssl_mutex.22998 w
/var/log/httpd/ssl_engine_log a
/var/log/httpd/error_log a
/var/log/httpd/access_log a
/var/log/httpd rw
/usr/sbin/suexec # missing file mode
/usr/lib/php4/ldap.so rx
/usr/lib/perl5/site_perl/5.6.0 # missing file mode
/usr/lib/locale/en_GB.iso885915/LC_MESSAGES/SYS_LC_MESSAGES rx
/usr/lib/locale/en_GB.iso885915/LC_MESSAGES r
/usr/lib/locale/en_GB.iso885915 rx
/usr/lib rx
/usr/lib/apache/mod_vhost_al4/ldap.so # missing file mode
/usr/lib/apache rx
/proc/sys/kernel/version r
/lib rx
/lib/ld-2.2.5.so x
/lib/i686/libpthread-0.9.so rx
/lib/i686/libm-2.2.5.so rx
/lib/i686/libc-2.2.5.so rx
/etc/ld.so.cache rx
/etc/httpd/conf/ssl.key/server.key # missing file mode
/etc/httpd/conf/ssl.crt/server.crt # missing file mode
/etc/httpd/conf/srm.conf r
/etc/httpd/conf/httpd.conf r
/etc/httpd/conf/access.conf r
/etc/httpd # missing file mode
/etc r
/dev/null rw
/dev # missing file mode
/SYSV00000000 x
/usr/sbin/httpd x
/ # missing file mode
-CAP_ALL
+CAP_CHOWN
+CAP_DAC_OVERRIDE
+CAP_KILL
+CAP_SETGID
+CAP_SETUID
+CAP_NET_BIND_SERVICE
RES_FSIZE 2555531 2555531
RES_DATA 919312 919312
RES_STACK 17384 17384
RES_RSS 0 0
RES_NPROC 33 33
RES_NOFILE 25 20
RES_MEMLOCK 0 0
RES_AS 90624288 90624288
RES_LOCKS 3 3
connect {
disabled
}
bind {
0.0.0.0:80 stream tcp
0.0.0.0:443 stream tcp
}
}
Phil Skuse.