Skip to contentSkip to conversation

Strange trace - tty problems

DISCUSSION Ivan Gyurdiev 3 participants 3 messages May 12, 2005 – May 29, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

What's this? Prior to this I was updating 400+ packages, cleaning bad repositories (so no more false httpd execmem bugs), updating the policy, and doing a restorecon -R /.

Then I couldn't open any terminals. Logging out of X and back in let me open terminals just fine.

Is this selinux related?

audit(1115874036.581:0): avc: granted { setenforce } for scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:security_t tclass=security
idr_remove called for id=0 which is not allocated.

 [<c020e872>] sub_remove+0x86/0xe6
 [<c02598b7>] release_dev+0x5d8/0xa0c
 [<c020e8ea>] idr_remove+0x18/0x75
 [<c02598ec>] release_dev+0x60d/0xa0c
 [<c017bf88>] do_sync_write+0x9e/0xec
 [<c01f33f8>] avc_has_perm+0x4e/0x66
 [<c013fff2>] autoremove_wake_function+0x0/0x37
 [<c025a2db>] tty_release+0x7/0xa
 [<c017ce33>] __fput+0x4b/0xfa
 [<c017b620>] filp_close+0x4f/0x6d
 [<c0103a61>] syscall_call+0x7/0xb
Signature · 8 lines
Ivan Gyurdiev <[email protected]>
Cornell University


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 13 lines · Ivan Gyurdiev

What's this? Prior to this I was updating 400+ packages, cleaning bad repositories (so no more false httpd execmem bugs), updating the policy, and doing a restorecon -R /.

Then I couldn't open any terminals. Logging out of X and back in let me open terminals just fine.

Is this selinux related?

audit(1115874036.581:0): avc: granted { setenforce } for scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:security_t tclass=security
idr_remove called for id=0 which is not allocated.

Quoted 11 lines
 [<c020e872>] sub_remove+0x86/0xe6
 [<c02598b7>] release_dev+0x5d8/0xa0c
 [<c020e8ea>] idr_remove+0x18/0x75
 [<c02598ec>] release_dev+0x60d/0xa0c
 [<c017bf88>] do_sync_write+0x9e/0xec
 [<c01f33f8>] avc_has_perm+0x4e/0x66
 [<c013fff2>] autoremove_wake_function+0x0/0x37
 [<c025a2db>] tty_release+0x7/0xa
 [<c017ce33>] __fput+0x4b/0xfa
 [<c017b620>] filp_close+0x4f/0x6d
 [<c0103a61>] syscall_call+0x7/0xb

Yes, although I'm not convinced that the bug is in SELinux itself. See:
http://marc.theaimsgroup.com/?l=selinux&m=110536513426735&w=2
http://marc.theaimsgroup.com/?l=selinux&m=110596994916785&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=109838483518162&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110881654617895&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110909717424443&w=2
http://marc.theaimsgroup.com/?l=linux-kernel&m=110909785408629&w=2

Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#2 lore raw
In reply to Ivan Gyurdiev
Quoted 2 lines · Ivan Gyurdiev

Then I couldn't open any terminals. Logging out of X and back in let me open terminals just fine.

The issue of not being able to open terminals is separate from the trace you saw. Usually when you see such a trace you can still open terminals.

There is another kernel bug which makes it unable to create new Unix98 pty devices until you first close every open device.

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.