[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-users] jk_check - hashlib/PREFIX
From: |
tiri |
Subject: |
Re: [Jailkit-users] jk_check - hashlib/PREFIX |
Date: |
Sat, 05 Feb 2011 11:12:08 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 |
Hi Olivier,
so I changed PREFIX to EXEPREFIX in line 214.
But I get following error:
$ jk_check -v -c /etc/jailkit/jk_check.ini /home/sftproot
/usr/sbin/jk_check:38: DeprecationWarning: the md5 module is deprecated;
use hashlib instead
import md5
Traceback (most recent call last):
File "/usr/sbin/jk_check", line 289, in <module>
main()
File "/usr/sbin/jk_check", line 286, in main
activateConfig(configfile, verbose)
File "/usr/sbin/jk_check", line 235, in activateConfig
jails = testrealpasswd()
File "/usr/sbin/jk_check", line 215, in testrealpasswd
if (rpw[6].trim() != chrootsh):
AttributeError: 'str' object has no attribute 'trim'
My jk_check.ini looks like:
#/etc/jailkit/jk_check.ini
[/home/sftproot]
# jk_check does not run any tests in this directory (useful for proc
filesystem)
# be careful!! there is I repeat NO SINGLE TEST in this directory
#ignorepatheverywhere =
# jk_check compares files if they are equal to their counterparts in the
real system,
# using md5sum(). In the specified directories it will not test if files
are equal
# it will still test for world writable directories and setuid files
ignorepathoncompare = /home/sftproot/home, /home/sftproot/etc
# jk_check tests directory permissions, if you deliberately made some
directories writable
# for group or others, or you don't care, specify them here
ignorewritableforgroup = /home/sftproot/home
ignorewritableforothers = /home/sftproot/home/tmp
# jk_check tests for setuid root and setgid root files
# if you deliberately have such files specify them here
#ignoresetuidexecuteforuser = /home/testchroot/usr/bin/smbmnt,
/home/testchroot/usr/bin/smbumount
#ignoresetuidexecuteforgroup = /home/testchroot/usr/bin/smbmnt,
/home/testchroot/usr/bin/smbumount
#ignoresetuidexecuteforothers =
Best regards for your help.
Thomas.
Btw- how can I get cvs version for fix?
Am 05.02.2011 09:21, schrieb Olivier Sessink:
this is already fixed in cvs, but not yet released. PREFIX should be
EXEPREFIX.
Olivier
On 02/04/2011 11:35 PM, tiri wrote:
Hello list,
currently I use 2.13 and are getting following error when starting
$ jk_check -v -c /etc/jailkit/jk_check.ini /home/sftproot
/usr/sbin/jk_check:38: DeprecationWarning: the md5 module is deprecated;
use hashlib instead
import md5
Traceback (most recent call last):
File "/usr/sbin/jk_check", line 289, in<module>
main()
File "/usr/sbin/jk_check", line 286, in main
activateConfig(configfile, verbose)
File "/usr/sbin/jk_check", line 235, in activateConfig
jails = testrealpasswd()
File "/usr/sbin/jk_check", line 214, in testrealpasswd
chrootsh = os.path.join(PREFIX, '/sbin/jk_chrootsh')
NameError: global name 'PREFIX' is not defined
Even if I add PREFIX='/usr' to get chrootsh found, it does not work
(here with modified jk_check).
$ jk_check -v -c /etc/jailkit/jk_check.ini /home/sftproot
/usr/sbin/jk_check:38: DeprecationWarning: the md5 module is deprecated;
use hashlib instead
import md5
Traceback (most recent call last):
File "/usr/sbin/jk_check", line 290, in<module>
main()
File "/usr/sbin/jk_check", line 287, in main
activateConfig(configfile, verbose)
File "/usr/sbin/jk_check", line 236, in activateConfig
jails = testrealpasswd()
File "/usr/sbin/jk_check", line 216, in testrealpasswd
if (rpw[6].trim() != chrootsh):
AttributeError: 'str' object has no attribute 'trim'
Operating System is RHEL6 x86_64.
Any help is appreciated.
Best regards,
Thomas
--
tiri GmbH
Lauenburger Str. 31a
21493 Schwarzenbek
Tel. 04151 8674995
Fax. 04151 8674996
Net. http://www.tiri.li
Geschäftsführer: Anja Baumann, Thomas Baumann
Sitz Schwarzenbek, Amtsgericht Lübeck, HRB 8837 HL
_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users
_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users