DragonFly BSD
DragonFly submit List (threaded) for 2005-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: jail.chflags_allowed


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Jul 2005 13:31:32 -0700 (PDT)

:Hello guys.
:
:I have some experience with FreeBSD5.X's jails and I realized that
:jail.chflags_allowed is missing in DragonFly so I decided to implement
:it.
:
:I'm sure that if there's something wrong (or missed) in
:vfs/ufs/ufs_vnops.c you'll fix it.
:
:P.S.: this is my first patch submission so I wasn't sure how to create
:the .patch files but you'll figure them out :)

    It didn't patch but I did most of it manually.  The only problem I see
    is that this patch is UFS-specific.  I would like the feature to be
    disableable on any filesystem.

    I have committed everything except the ufs_vnops.c changes.  These
    changes are being made to UFS's ufs_setattr() function (the VOP_SETATTR
    VOP call).  It seems to me that this check could be made at a higher
    level, e.g. in setfflags() in kern/vfs_syscalls.c, and thus apply to
    all filesystems.

    Would you like to have a go at adding the required code to setfflags() ?

						-Matt




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]