Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

PolicyKit versus SELinux and PAM

 
   Soft32 Home -> Linux -> Security RSS
Next:  Extending sudo with capability limiting?  
Author Message
Wayne

External


Since: Nov 05, 2007
Posts: 9



(Msg. 1) Posted: Tue Nov 13, 2007 5:11 pm
Post subject: PolicyKit versus SELinux and PAM
Archived from groups: comp>os>linux>security (more info?)

It isn't clear how PolicyKit will be "better" than SELinux
or PAM. It seems that PolicyKit can use other subsystems
such as PAM and can use more information about the Subject
than either PAM or SELinux can.

On the downside PolicyKit will only be as secure as the
3rd party sub-systems it uses, and unlike SELinux (but like
PAM) will require programmers to use the API, or the policy
won't be enforced. so what prevents an attacker from
replacing those API calls with NOPs in some binary, or
commenting out those calls in a script?

It almost seems like PolicyKit is meant as a PAM replacement
(in the sense application developers will use PolicyKit API
rather than the PAM API).

To be secure it seems as if all applications need digital
signatures (e.g. Tripwire) and kernel support to check those
and refuse to run modified apps. Then you know the PolicyKit
API calls are un-modified.

What am I missing?

-Wayne
Back to top
Login to vote
Stachu 'Dozzie' K.

External


Since: Oct 01, 2004
Posts: 4



(Msg. 2) Posted: Wed Nov 14, 2007 2:03 am
Post subject: Re: PolicyKit versus SELinux and PAM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 14.11.2007, Wayne <nospam.TakeThisOut@all4me.invalid> wrote:
> It isn't clear how PolicyKit will be "better" than SELinux
> or PAM.

Stop here. Now go and read about SELinux, PAM and PolicyKit. First of
all, what it is and what is it designed for. Otherwise you will say
nonsenses like "PAM is better/worse than SELinux" or "SELinux is
better/worse than PK". They are uncomparable as they do essentially
different things.

[...]
> What am I missing?

The main ideas behind all three systems.

--
Secunia non olet.
Stanislaw Klekot
Back to top
Login to vote
Wayne

External


Since: Nov 05, 2007
Posts: 9



(Msg. 3) Posted: Wed Nov 14, 2007 2:03 am
Post subject: Re: PolicyKit versus SELinux and PAM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Stachu 'Dozzie' K. wrote:
> On 14.11.2007, Wayne <nospam.DeleteThis@all4me.invalid> wrote:
>> It isn't clear how PolicyKit will be "better" than SELinux
>> or PAM.
>
> Stop here. Now go and read about SELinux, PAM and PolicyKit. First of
> all, what it is and what is it designed for. Otherwise you will say
> nonsenses like "PAM is better/worse than SELinux" or "SELinux is
> better/worse than PK". They are uncomparable as they do essentially
> different things.
>
> [...]
>> What am I missing?
>
> The main ideas behind all three systems.
>

I may be missing the point, but I have read about these before posting.
PolicyKit claims to solve problems with sudo, groups, PAM. Here's
the link:

http://hal.freedesktop.org/docs/PolicyKit/intro-define-problem.html

But after reading most of the PolicyKit reference, it seems like
PolicyKit is just adding another policy DB, this one pretty much
designed so KDE/Gnome developers can set policy for applications
that run in those environments, but that the GUI developers don't
control.

The closest I can see is that PolicyKit is intended as a replacement
for sudo, but will work "better" in some sense, e.g., less privilege
needed, more authentication options. However the designers claim
PAM and these other security subsystem are flawed in some way. That
leads me to think the PolicyKit developers see it as a possible
replacement for some of what is currently done in these other ways.

And you are right that SELinux and PAM are fundamentally different
systems for different things. But the PK docs mention SELinux
and PAM, so I was wondering how PolicyKit compares with each:

While all three security subsystems have different focuses, there
is some overlap. For example: "dd if=/dev/fd0 ..." could have
permission blocked or permitted independently by SELinux rules,
PAM (pam_console), group membership (Debian), and apparently by
PolicyKit too. And while there is no conflit with SELinux rules
(which can always deny access even if permitted by the other
security mechanisms and subsystems), PAM, plugdev group, or
sudo could be configured to allow access while the PolicyKit
rules deny it. So a PAMified app may work while a PK-ified one
may not. That's what I mean by overlap and conflict.

So I think my question is valid. How does PolicyKit make system
administration any easier by adding yet another policy DB?
How does it make application authoring easier, which will
apparently use the PolicyKit API as a replacement for the PAM API
in many applications? About the only folks who benefit are
the (GUI) framework developers. And of course the end user may
have faster / easier privilege escalation than by waiting for
some admin to update a DB, or by having to launch apps with sudo.

-Wayne
Back to top
Login to vote
redbyte.labs

External


Since: Jan 23, 2007
Posts: 1



(Msg. 4) Posted: Wed Nov 14, 2007 8:07 pm
Post subject: Re: PolicyKit versus SELinux and PAM [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

PolicyKit is not something that could replace neither LinuxPAM nor
SELinux. Let's say, its complimentary application-level access control
system... Not more. By the way it's pretty raw and still not normally
supported in KDE. When I faced problem of hardening my LFS I decided
that it would be more rational to configure LinuxPAM properly. By the
way I'm not sure polkit could work without PAM.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
NIS+PAM+SSH+Firewalling.....all in the mix - I've encountered an issue in trying to setup an iptables firewall (shorewall) on a debian etch server (hostname zeus).....

problem with sftp rpm - Hi all I downloaded 'sftp-0.9.9-4.src.rpm' and when I run the command "rpm -ivh sftp-0.9.9-4.src.rpm", it giv...

[PATCH][SELinux] Let us not leak memory in SELinux : secur.. - Hi, Leaking memory is a bad idea, so let's not do it, in security/selinux/ss/services.c::security_netlbl_cache_add()....

FC3 versus FC2 versus RHEL 4 - Hi, all. I killed my computer (don't ask) so I just decided to wipe it clean and upgrade to Fedora Core 3 (I had been....

more pedantry: "depends on" versus "depends" versus "requi.. - i'm thinking that the kconfig structure doesn't really need to support all three of these dependency directives for..

[gentoo-user] usermode-sources versus versus gentoo-dev-so.. - It's possible to use gentoo-dev-sources or mm-sources (2.6.10) as user mode kernel? There are patches not already..
       Soft32 Home -> Linux -> Security All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]