jk_check(8) | jk_check | jk_check(8) |
jk_check - a utility that will check a jail for security problems
jk_check jail
jk_check -v -c configfile jail
jk_check will run several tests on all files and directories in a jail. The tests are:
-test for setuid (set user id) or setgid (set group id) files
-test for file modifications, using an MD5 checksum on the file in the jail and the same file in the real root
-test for group writable or world writable directories
-test for matching user information in the jail and on the real system
It will test directories based on the config file /etc/jailkit/jk_check.ini but also based on jail patterns (dir/./dir) found in the home directories in /etc/passwd
The most minimal configuration looks like:
[/home/testchroot]
This will include all the files and directories in /home/testchroot for testing.
Often you want to ignore some tests on some directories, the following configfile shows some examples:
[/home/testchroot] ignorepatheverywhere = ignorepathoncompare = /home/testchroot/home, /home/testchroot/etc ignorewritableforgroup = /home/testchroot/home ignorewritableforothers = /home/testchroot/home/tmp ignoresetuidexecuteforuser = /home/testchroot/usr/bin/smbmnt ignoresetuidexecuteforgroup = /home/testchroot/usr/bin/smbmnt ignoresetuidexecuteforothers =
ignorepatheverywhere
/etc/jailkit/jk_check.ini
jailkit(8) jk_chrootlaunch(8) jk_chrootsh(8) jk_cp(8) jk_init(8) jk_jailuser(8) jk_list(8) jk_lsh(8) jk_procmailwrapper(8) jk_socketd(8) jk_uchroot(8) jk_update(8) chroot(2)
Copyright (C) 2003, 2004, 2005, 2006, 2007, Olivier Sessink
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
07-02-2010 | JAILKIT |