CAP_* inheritance
Posted: Sat Jan 31, 2004 4:29 pm
Hello,
I have a hard time finding out why the following is happening.
I have an ACL for vsftpd, but when I remove the "o" subject, it will simply no work. I always get:
use of CAP_SETGID denied for (vsftpd:11282) UID(0) EUID(0), parent (vsftpd:5910) UID(0) EUID(0)
But I already enable this in my ACL, from my point of view this should do the trick, but for some reasons unknown to me it does not. For brevity I stripped my ACL as much as possible, here we go
/usr/sbin/vsftpd {
/ r
/lib rx
/dev/log rw
/var/log/vsftpd.log rw
-CAP_ALL
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_CHROOT
}
The root ACL is
/ {
/ r
/opt rx
/home rwx
/mnt rw
/dev
/dev/urandom r
/dev/random r
/dev/zero rw
/dev/input rw
/dev/psaux rw
/dev/null rw
/dev/tty? rw
/dev/console rw
/dev/tty rw
/dev/ttyp? rw
/dev/pts rw
/dev/ptmx rw
/dev/dsp rw
/dev/mixer rw
/dev/fd0 r
/dev/cdrom r
/dev/mem h
/dev/kmem h
/dev/port h
/bin rx
/sbin rx
/lib rx
/usr rx
/etc rx
/etc/ssh h
/proc rwx
/proc/kcore h
/proc/sys r
/root r
/tmp rw
/var rwx
/var/tmp rw
/var/log r
/boot h
/etc/grsec h
-CAP_SYS_TTY_CONFIG
-CAP_LINUX_IMMUTABLE
-CAP_NET_RAW
-CAP_MKNOD
-CAP_SYS_ADMIN
-CAP_SYS_RAWIO
-CAP_SYS_MODULE
-CAP_SYS_PTRACE
-CAP_NET_ADMIN
-CAP_NET_BIND_SERVICE
-CAP_SYS_CHROOT
}
I have a hard time finding out why the following is happening.
I have an ACL for vsftpd, but when I remove the "o" subject, it will simply no work. I always get:
use of CAP_SETGID denied for (vsftpd:11282) UID(0) EUID(0), parent (vsftpd:5910) UID(0) EUID(0)
But I already enable this in my ACL, from my point of view this should do the trick, but for some reasons unknown to me it does not. For brevity I stripped my ACL as much as possible, here we go
/usr/sbin/vsftpd {
/ r
/lib rx
/dev/log rw
/var/log/vsftpd.log rw
-CAP_ALL
+CAP_SETGID
+CAP_SETUID
+CAP_SYS_CHROOT
}
The root ACL is
/ {
/ r
/opt rx
/home rwx
/mnt rw
/dev
/dev/urandom r
/dev/random r
/dev/zero rw
/dev/input rw
/dev/psaux rw
/dev/null rw
/dev/tty? rw
/dev/console rw
/dev/tty rw
/dev/ttyp? rw
/dev/pts rw
/dev/ptmx rw
/dev/dsp rw
/dev/mixer rw
/dev/fd0 r
/dev/cdrom r
/dev/mem h
/dev/kmem h
/dev/port h
/bin rx
/sbin rx
/lib rx
/usr rx
/etc rx
/etc/ssh h
/proc rwx
/proc/kcore h
/proc/sys r
/root r
/tmp rw
/var rwx
/var/tmp rw
/var/log r
/boot h
/etc/grsec h
-CAP_SYS_TTY_CONFIG
-CAP_LINUX_IMMUTABLE
-CAP_NET_RAW
-CAP_MKNOD
-CAP_SYS_ADMIN
-CAP_SYS_RAWIO
-CAP_SYS_MODULE
-CAP_SYS_PTRACE
-CAP_NET_ADMIN
-CAP_NET_BIND_SERVICE
-CAP_SYS_CHROOT
}