On Wednesday 30 July 2003 14:07, Fran�ois Pons wrote:
> "Andrey Borzenkov" <[EMAIL PROTECTED]> writes:
> > > Can you make /proc/fs/supermount/subfs owner the user who has control
> > > over the floppy device ?
> >
> > the simplest way is to use pam_console to reassign ownership.
> > I'll get a look. will it be OK?
>

it needs even more patches in main kernel so I'd rather avoid it. What is 
wrong with this trivial helper (attached) and usermode:

pts/2}% subfs --help
Unknown option: help
Usage: /usr/sbin/subfs {options ...} <dev_or_mpoint> ...
        -e, --enable:   enable subfs
        -d, --disable:  disable subfs
        -r, --release:  umount subfs
        -f, --force:    force umount if subfs busy
        -s, --status:   show subfs status

{pts/2}% LC_ALL=C ll =subfs
lrwxrwxrwx    1 root     root           13 Mar 23 13:52 /usr//bin/subfs -> 
consolehelper*

{pts/2}% LC_ALL=C ll /etc/security/console.apps/subfs
-rw-r--r--    1 root     root            0 Mar 30 19:12 
/etc/security/console.apps/subfs

{pts/2}% cat /etc/pam.d/subfs
#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
auth       required     /lib/security/pam_console.so
#auth       required    /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_permit.so

I guess it is more flexible than hardcoding it in kernel.

Attachment: subfs
Description: Perl program

Reply via email to