Re: Suggested dual human/binary interface for proc/devfs

From: H. Peter Anvin (hpa@transmeta.com)
Date: Thu Apr 13 2000 - 16:48:28 EST


Ion Badulescu wrote:
>
> In article <cs.lists.linux-kernel/38F626F4.63102FBB@transmeta.com> you wrote:
>
> > On a similar note, I notice that recent versions of RedHat (via GNOME?)
> > seems to magically change owners on a whole bunch of devices. It seems
> > to me that it would be a *much* cleaner solution would be to have a
> > special group for the console owner, and when logging in the user add
> > that group to his auxilliary group list via setgroups().
>
> No, that would be a security problem -- and it's actually documented in the
> pam_group module documentation. If I, as the console user, become even
> temporarily a member of the console group, nothing prevents me from
> creating a setgid binary which will give me the group membership later,
> when I'm not on the console anymore.
>
> The chown-ing on console login (or some similar method through devfs/devfsd)
> is the cleanest way to do this.
>

Yes, I caught that... we need ACLs.

        -hpa


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:22 EST