getting sebsd source

Robert Watson rwatson at FreeBSD.org
Wed Jul 6 15:31:57 GMT 2005


On Wed, 6 Jul 2005, OutBack Dingo wrote:

> seems like it needs fixing as of today  : )) where can  help ??
>
> /usr/sebsd/sys/kern/kern_mac.c: In function `lmount':
> /usr/sebsd/sys/kern/kern_mac.c:1284: warning: implicit declaration of
> function `vfs_mount'
> /usr/sebsd/sys/kern/kern_mac.c:1284: warning: nested extern declaration
> of `vfs_mount'

The specific problem here is that in the previous snapshot, Andrew Reisse 
had added an lmount() system call that allowed a user process to request a 
particular label be used on a mounted file system in single-label mode. 
FreeBSD is in the process of transitioning from mount() to nmount(), which 
adds a generic syntax for expressing mount arguments.  The old lmount() 
changes are in conflict with the move to nmount(), which needs cleaning.

The best solution would be to move to passing the label as an nmount() 
argument, entirely avoiding a special system call.  However, it turns out 
that mount(8) actually uses an internal mount_ufs.c rather than 
mount_ufs(8) (whoops).  I've attached a patch from Suleiman Souhlal that 
causes UFS to be mounted using mount_ufs(8) and nmount(2) instead of the 
special case in mount(8).  You'll still need to teach both the mount(8) 
front end to pass the label argument to mount_ufs(8), and then 
mount_ufs(8) to pass it as an argument to nmount(2).  Finally, we need to 
restructure the nmount code to pass the argument to the right places to 
convert it to an internalized label.

My initial take is that we need to modify vfs_donmount() to look for the 
optional "label" argument, and if present, internalize the label and then 
pass it to vfs_domount().  I'll commit a prototype of the changes #if 0, 
if you want to take a look at the user mount changes, etc.

Thanks :-)

Robert N M Watson

> *** Error code 1
>
> Stop in /usr/obj/usr/sebsd/sys/MAC.
> *** Error code 1
>
> Stop in /usr/sebsd.
> *** Error code 1
>
> Stop in /usr/sebsd.
>
>
>
> On Wed, 2005-07-06 at 09:49 +0100, Robert Watson wrote:
>> On Wed, 6 Jul 2005, OutBack Dingo wrote:
>>
>>> here is a sup-file found on the site, I use it
>>>
>>> http://www.trustedbsd.org/trustedbsd-supfile
>>
>> FYI, I'm in the throes of updating from the December 2004 6.x source
>> snapshot to a more recent one, so things are currently in a non-buildable
>> state.  I hope to complete this work in the next week or so, subject to
>> the normal disruptions.  It will probably take a little longer to get
>> things into a runnable state.  To get source matching the most recent
>> SPARTA snapshot, check out source from around 2005/07/01.  Once the update
>> to the new version is done, we'll generate another test snapshot.
>>
>> Robert N M Watson
>>
>>>
>>> On Tue, 2005-07-05 at 20:21 -0500, Dylan Wood wrote:
>>>> I just joined the list, so please forgive me if this has been covered
>>>> before or if I am missing something.
>>>>
>>>> I am trying to get up to date source for sebsd (policies mainly).  I am
>>>> currently downloading the snapshot, but I am hoping that I can get it
>>>> from cvs, perforce, or something.  I have tried perforce.freebsd.org,
>>>> for which I have no username or password, and various branches on
>>>> cvsup.freebsd.org, with no success.
>>>>
>>>> If someone could point me in the right direction, or tell me it can't be
>>>> done, I would appreciate it.
>>>>
>>>> Thanks,
>>>>
>>>> Dylan
>>>>
>>>> To Unsubscribe: send mail to majordomo at trustedbsd.org
>>>> with "unsubscribe trustedbsd-discuss" in the body of the message
>>>
>
>
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-discuss" in the body of the message



More information about the trustedbsd-discuss mailing list