I'm using gentoo with linux-2.4.24-grsec-1.9.13 kernel. I have configured the ACL for all services (Apache, login, sshd, postfix, etc.) and it eems to work
But I have a problem with samba. With the ACL activated (gradm -E) I can't browse the samba server. I have this dmesg log:
- Code: Select all
grsec: From 192.168.1.45: attempted bind to 127.0.0.1 port 0 sock type 2 protocol 17 by (smbd:1623) UID(0) EUID(0), parent (smbd:1374) UID(0) EUID(0)
But if I desactivate the ACL (gradm -D) I can connect to the samba server and after reactivating the gradm -E, strangly I can browse on the samba shares. The problem is on the first connection, and I can't find any solution.
Here my ACL configuration for samba:
- Code: Select all
/usr/sbin/smbd oXA {
/dev/log rw
/usr/share r
/etc r
/etc/grsec h
/etc/ld.so.cache r
/etc/samba/private/ rw
/tmp rwx
/lib rx
/usr/lib rx
/var/log/samba a
/var/run/samba.pid w
/var/cache/samba/ rw
/var/www rw
/dev/null rw
/bin/bash x
/usr/sbin/smbd x
/
-CAP_ALL
+CAP_DAC_OVERRIDE
+CAP_KILL
+CAP_SETGID
+CAP_SETUID
+CAP_NET_BIND_SERVICE
RES_CRASH 1 10m
connect {
192.168.1.0/24:137 dgram udp
192.168.1.0/24:138 dgram udp
192.168.1.0/24:139 dgram udp
192.168.1.0/24:445 dgram udp
192.168.1.0/24:515 dgram udp
0.0.0.0/0:0-61024 dgram udp
}
bind {
192.168.1.0/24:137 stream tcp
192.168.1.0/24:138 stream tcp
192.168.1.0/24:139 stream tcp
192.168.1.0/24:445 stream tcp
192.168.1.0/24:515 stream tcp
0.0.0.0/0:0-61024 stream tcp
}
}
Olivier