jail.chflags_allowed

Deyan Dyankov deyan.dyankov at gmail.com
Thu Jul 21 08:44:35 PDT 2005


Yes, at first i was looking at setfflags() but I couldn't figure out
how to modify it correctly and i was afraid of missing something.
I'll take a look at it again but if i can't figure it out i'll patch
the other filesystems.

thanks for the advice ;-)

On 7/20/05, Matthew Dillon <dillon at xxxxxxxxxxxxxxxxxxxx> wrote:
> :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
> 
>






More information about the Submit mailing list