Skip to contentSkip to conversation

This does not look correct....

DISCUSSION [email protected] 2 participants 2 messages Jul 4, 2002 – Jul 5, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Brad,

Am I correct in presuming it is okay to give ssh access to getty's if they are for outbound use? I am trying to make it as tight as possible without being too constricted.

Many thanks,

Spencer

Quoted 42 lines · Brad Chapman

Sir,

Quoted 12 lines · --- [email protected] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I know I have not been trying to configure SELinux for very long, but this does not look correct to me. Should ssh have a getty_t definision? I know it needs one to prevent this error message, but is it correct for ssh to have a getty_t definision?

Quoted 7 lines
Jul  4 08:05:33 gatekeeper kernel: avc:  denied  { use } for  pid=339

exe=/usr/bin/ssh path=/dev/tty3 dev=03:01 ino=71770 scontext=root:sysadm_r:sysadm_ssh_t tcontext=system_u:system_r:getty_t tclass=fd

I am running debian (woody), with kernel from NSA, and packages from Russell's site.

To me, it looks like ssh is trying to access /dev/tty3 and failing
because it isn't allowed the "use" action for the getty_t domain from its own domain. Try the following rule:

allow sysadm_ssh_t getty_t:fd use;

(Note to others: what does "use" mean?)

Quoted 4 lines

Many thanks in advance,

Spencer

Brad

=====
Brad Chapman

Quoted 9 lines

Permanent e-mails: [email protected]
[email protected]
[email protected]

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-----BEGIN PGP SIGNATURE-----
Version: Hush 2.1
Note: This signature can be verified at https://www.hushtools.com

wmAEARECACAFAj0kfqcZHGdkc21hcnNoYWxsQGh1c2htYWlsLmNvbQAKCRC4zrK67KP4 z1lmAJ4i+umQuWs5CPf+NyMBHGBccn/9iQCdH1ZnESRYE/st2Rg6Jeu87jCl6DE= =f8Ao
-----END PGP SIGNATURE-----

Communicate in total privacy.
Get your free encrypted email at https://www.hushmail.com/?l=2

Looking for a good deal on a domain name? http://www.hush.com/partners/offers.cgi?id=domainpeople

--
You have received this message because you are subscribed to the selinux 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

Sir,

Quoted 10 lines · --- [email protected] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Brad,

Am I correct in presuming it is okay to give ssh access to getty's if they are for outbound use? I am trying to make it as tight as possible without being too constricted.

It would seem so. I've never heard of the "use" action before; if
ssh had generated an avc: denied message for the action "write", I would say yes. In this case, try the rule and see if it works. If it does, then I guess it's alright.

Quoted 4 lines

Many thanks,

Spencer

Brad

Quoted 75 lines
Quoted 12 lines · Brad Chapman

Sir,

Quoted 9 lines · --- [email protected] wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I know I have not been trying to configure SELinux for very long, but this does not look correct to me. Should ssh have a getty_t definision? I

know

Quoted 1 line
Quoted 1 line

it needs one to prevent this error message, but is it correct for ssh to

have

Quoted 7 lines
Quoted 7 lines

a getty_t definision?

Jul  4 08:05:33 gatekeeper kernel: avc:  denied  { use } for  pid=339

exe=/usr/bin/ssh path=/dev/tty3 dev=03:01 ino=71770 scontext=root:sysadm_r:sysadm_ssh_t tcontext=system_u:system_r:getty_t tclass=fd

Quoted 5 lines
Quoted 2 lines

I am running debian (woody), with kernel from NSA, and packages from Russell's site.

To me, it looks like ssh is trying to access /dev/tty3 and failing
because it isn't allowed the "use" action for the getty_t domain from its

own

Quoted 17 lines

domain. Try the following rule:

allow sysadm_ssh_t getty_t:fd use;

(Note to others: what does "use" mean?)

Quoted 4 lines

Many thanks in advance,

Spencer

Brad

=====
Brad Chapman

Quoted 9 lines

Permanent e-mails: [email protected]
[email protected]
[email protected]

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

-----BEGIN PGP SIGNATURE-----
Version: Hush 2.1
Note: This signature can be verified at https://www.hushtools.com

wmAEARECACAFAj0kfqcZHGdkc21hcnNoYWxsQGh1c2htYWlsLmNvbQAKCRC4zrK67KP4 z1lmAJ4i+umQuWs5CPf+NyMBHGBccn/9iQCdH1ZnESRYE/st2Rg6Jeu87jCl6DE= =f8Ao
-----END PGP SIGNATURE-----

Communicate in total privacy.
Get your free encrypted email at https://www.hushmail.com/?l=2

Looking for a good deal on a domain name?
http://www.hush.com/partners/offers.cgi?id=domainpeople

Quoted 5 lines

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

=====
Brad Chapman

Permanent e-mails: [email protected]
[email protected]
[email protected]

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.