Skip to contentSkip to conversation

PAM modules ordering

DISCUSSION Laurent Bigonville 2 participants 3 messages May 6, 2014 SELinux security module

lore
Share & tools
lore
#0 lore raw

Hello,

I was wondering, is there a list of pam modules that need to be called between pam_selinux close/open?

On Fedora I see pam_loginuid, but are there other modules that must be in between, or can all the other modules be after the "pam_selinux open" one?

Cheers,

Laurent Bigonville

#1 lore raw
Quoted 9 lines · Laurent Bigonville

Hello,

I was wondering, is there a list of pam modules that need to be called between pam_selinux close/open?

On Fedora I see pam_loginuid, but are there other modules that must be in between, or can all the other modules be after the "pam_selinux open" one?

Quoted 10 lines

Cheers,

Laurent Bigonville
_______________________________________________
Selinux mailing list
[email protected]
To unsubscribe, send email to [email protected].
To get help, send an email containing "help" to [email protected].

No, only thing that should not be called after pam_selinux open is an app that wants to run a priv command. pam_selinux open is setting the user context, so any apps that are executed after the open will be executed in the users context, Any app that is executed before the open will be executed as the context of the login program.

pam_selinux will also change the labels on ttys.

#2 lore raw
Quoted 7 lines · Daniel J Walsh

No, only thing that should not be called after pam_selinux open is an app that wants to run a priv command. pam_selinux open is setting the user context, so any apps that are executed after the open will be executed in the users context, Any app that is executed before the open will be executed as the context of the login program.

pam_selinux will also change the labels on ttys.

Thanks for your answer, I guess I'll have to change what's Debian is currently doing, and change to Fedora's way (pam_loginuid before pam_selinux open and the rest after)