Fail to unmount /dev/pts after using gradm in xterm

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Fail to unmount /dev/pts after using gradm in xterm

Postby vs » Mon Jan 17, 2005 6:02 am

Hi,

I've noticed the following behaviour on my Linux 2.6.10 box (grsecurity-2.1.1, development version 01/14/2005).

After running "gradm -a role" or "gradm -D" in a xterm (e.g. /dev/pts/0) the filesystem /dev/pts is busy when I'm shutting down the system (/dev/pts is empty, though). Due to this, the root filesystem cannot be unmounted as well.

The problem does not occur, if gradm is used on a virtual console (/dev/tty1 for example).

-vs
vs
 
Posts: 22
Joined: Sun Jan 09, 2005 11:11 am

Postby spender » Mon Jan 17, 2005 11:41 am

Can you do a lsof | grep pts ?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby vs » Mon Jan 17, 2005 4:56 pm

I've put "lsof | grep pts" in my shutdown script and got no output.

The only running user processes were bash and init (ensured by calling "killall5 -15" and "killall5 -9" and verified with "ps aux").

"umount /dev/pts" still reports "umount: /dev/pts: device is busy".

Everything works fine with Linux 2.6.7 + grsecurity-2.0.1 on the same machine.
vs
 
Posts: 22
Joined: Sun Jan 09, 2005 11:11 am

Postby spender » Mon Jan 17, 2005 5:09 pm

Apply this patch:

http://cvsweb.grsecurity.net/index.cgi/ ... 1=1.24&f=u

It should fix the problem.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Postby vs » Wed Jan 19, 2005 8:38 am

Thanks, the problem is fixed.

-vs
vs
 
Posts: 22
Joined: Sun Jan 09, 2005 11:11 am


Return to grsecurity support

cron