Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grsec issue with truecrypt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
haxle
n00b
n00b


Joined: 18 Feb 2005
Posts: 61

PostPosted: Fri Sep 09, 2011 1:49 am    Post subject: grsec issue with truecrypt Reply with quote

Ok so... I've got an issue here..

When I'm trying to mount an encrypted external drive i get this error:
Code:
No such file or directory: /tmp/.truecrypt_aux_mnt1/control


and..

Code:

dmesg | tail

[ 1605.188547] grsec: mount of truecrypt to /tmp/.truecrypt_aux_mnt1 by /usr/bin/truecrypt[truecrypt:2454] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/truecrypt[truecrypt:2451] uid/euid:0/0 gid/egid:0/0

[ 1605.195804] grsec: denied RWX mmap of <anonymous mapping> by /usr/bin/truecrypt[truecrypt:2457] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

[ 1605.199378] grsec: unmount of truecrypt by /bin/umount[umount:2458] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/truecrypt[truecrypt:2457] uid/euid:0/0 gid/egid:0/0


so.. it's grsec issue.. how do i fix it? :? ... other than disabling grsec...
Back to top
View user's profile Send private message
causality
Apprentice
Apprentice


Joined: 03 Jun 2006
Posts: 239

PostPosted: Mon Oct 10, 2011 4:31 pm    Post subject: Reply with quote

What are the PaX flags on the truecrypt executable?

I use Hardened but I don't actually have truecrypt installed. The output of "whereis truecrypt" will tell you where the program is located. For purposes of this response, I will assume it is /usr/bin/truecrypt but please adjust as needed if I have that wrong.

If you run "paxctl -v /usr/bin/truecrypt" you probably will not see anything about MPROTECT being disabled. If that is the case, you have found the problem. Lots of programs like mplayer and others that perform certain tasks in memory will get killed off by PaX/Grsec.

You can remove the MPROTECT restriction from truecrypt by running "paxctl -m /usr/bin/truecrypt". That should make it stop crashing.
Back to top
View user's profile Send private message
haxle
n00b
n00b


Joined: 18 Feb 2005
Posts: 61

PostPosted: Wed Oct 12, 2011 10:21 pm    Post subject: Reply with quote

running paxctl -v /usr/bin/truecrypt produced:

Code:

file /usr/bin/truecrypt does not have a PT_PAX_FLAGS program header, try conversion


I haven't tried conversion because i figured that would just cause more problems ... I completely disabled grsec as well and i don't get the errors in dmesg | tail anymore but there isn't anything about the issue at all now and I'm still having the same issue : ?
Back to top
View user's profile Send private message
mr.sande
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2010
Posts: 82
Location: Norway

PostPosted: Thu Oct 13, 2011 2:06 pm    Post subject: Reply with quote

It doesn't hurt to try to add the pax header to truecrypt and disable the mprotect, if it borks truecrypt you can just reinstall it :)

You can also enable softmode for pax so that only executables with pax headers are enforced. Softmode has to be explicitly enabled with sysctl.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum