Support for file sharing over SMB/NFS

David Faure david at mandrakesoft.com
Wed Apr 17 07:30:01 BST 2002


On Tuesday 16 April 2002 22:34, Matthias Hölzer-Klüpfel wrote:
> On Tuesday 16 April 2002 20:57, David Faure wrote:
> 
> > The backend is a perl script, "fileshareset", suid-root, which takes care
> > of updating the appropriate files (typically /etc/exports and smb.conf)
> > when adding/removing shared directories, and HUPing smbd to get it
> > to re-read the config. It can also list the currently shared directories.
> 
> A setuid perl script? Do you believe this will pass any kind of security 
> audit?

Actually yes, since it's much harder to make a buffer overrun in perl than
in e.g. C.
I'm no perl expert, but the writer of this script has already written many such
scripts (most of Mandrake is done with perl scripts ;). And perl has special 
support for suid scripts (see description of the -T option in man perlrun for
instance).

-- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today





More information about the kde-core-devel mailing list