[lkml]   [2007]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] led-class.c permission change
    > > Take a look at the various pam console management modules (and also
    > > beat people up to get revoke() support into the kernel).
    > So, you suggest me to link my plugin to libpam and find something that
    > allows the plugin to write into /brightness?

    Much simpler than that. Most distributions have a pam module already
    which updates permissions on things that the "console" user may want to
    access directly (eg /dev/audio* /dev/cdrom etc) but which should
    otherwise be protected from misuse (eg people with cronjobs that run
    eject - an old an very funny SunOS prank)

    If your distribution is like most and uses pam_console then see man 5
    console.perms and add a rule to the /etc/security/console.perms file for
    your file. At that point it will happily change the rights back and
    forth for you as required.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-05-06 14:37    [W:0.018 / U:31.176 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site