testcase: #include <fcntl.h> #include <stdio.h>
main() {
int fd = open("/tmp/.lockfile", O_RDWR|O_CREAT); unlink("/tmp/.lockfile");
fork(); fork(); fork(); fork();
while(1) { struct flock lock; lock.l_type=F_WRLCK; lock.l_start=0; lock.l_whence=SEEK_END; lock.l_len=0; fcntl(fd,F_SETLKW,&lock); lock.l_type=F_UNLCK; fcntl(fd,F_SETLKW,&lock); }
}
Profile: # Last Modified: Fri Dec 5 13:59:51 2008 #include <tunables/global> /usr/local/sbin/domasaatest flags=(audit) { #include <abstractions/base> #include <abstractions/mysql> #include <abstractions/nameservice>
capability kill, capability net_bind_service, capability setgid, capability setuid,
# Major libs /lib/ld-*.so mr, /lib/libc-*.so mr, /lib/libpthread-*.so mr, /lib/librt-*.so mr,
/tmp/* rwk,
testcase:
#include <fcntl.h>
#include <stdio.h>
main() {
int fd = open("/ tmp/.lockfile" , O_RDWR|O_CREAT); "/tmp/. lockfile" );
unlink(
fork();
fork();
fork();
fork();
while(1) { type=F_ WRLCK; whence= SEEK_END; fd,F_SETLKW, &lock); type=F_ UNLCK; fd,F_SETLKW, &lock);
struct flock lock;
lock.l_
lock.l_start=0;
lock.l_
lock.l_len=0;
fcntl(
lock.l_
fcntl(
}
}
Profile: sbin/domasaates t flags=(audit) { mysql> nameservice>
# Last Modified: Fri Dec 5 13:59:51 2008
#include <tunables/global>
/usr/local/
#include <abstractions/base>
#include <abstractions/
#include <abstractions/
capability kill,
capability net_bind_service,
capability setgid,
capability setuid,
# Major libs libpthread- *.so mr,
/lib/ld-*.so mr,
/lib/libc-*.so mr,
/lib/
/lib/librt-*.so mr,
/tmp/* rwk,
}