fresh mac code report

Ilmar S. Habibulin ilmar at watson.org
Wed Jan 23 10:05:21 GMT 2002



On Tue, 22 Jan 2002, Brian F. Feldman wrote:

> > I'm hardly imagine how to approach it. mtree files can be made
> > automatically or edited by hands. If we create file by hands, then there
> > is no problem. But if we use something automated, then how could mtree
> > know of what kind of commands it must use in order to get and then to set
> > something (extended file attributes). I'll think about it, but if you have
> > some thought, share them please.
> I was simply thinking along the lines that it's about as easy to type
> "setfmac foo/bar {}" as it is "mac=foo/bar", and because of this it may not
> be worth it specifically adding mac labeling support itself to mtree.
Yes, i understand that. But you are talking about "making mtree files by
hands" case. But i want to find some solution, that would help to do such
thing automatically. I think, that adding some command switch like
'-<switch> get-command set-command' is what we need. Maybe use of multiple
switches for a set of commands is possible.

> I don't understand; how do login and init factor into the operation of ssh?
I think, that ssh trys to access raw terminal in order to get password.
And terminal device label differs from users label. When i set them equal
the problem have gone away.

> What fmac are your files and pmac is X?  Have you tried adjusting the
> location of the XAUTHORITY file to, e.g., /tmp and verified it works?
biba/high on files, biba/low on user(process). That was default, now
Robert have changed that. So do i, an no i have network and X working
without enforce_* switch off. Robert said that it was a possible bug
somewhere, because biba model was switched of too. Sorry, i have no time
right now for a more deeper investigation of problems. And you have
changes in sources, so i hope to continue my trouble searchung later,
maybe in the next week.

> > > Note that in this case, startx starts with just the user's credentials, and
> > > permissions needed by X are gained generally from a setuid flag on it or
> > > Xwrapper.  Also, fd 0, 1, and 2 are all inherited from the context of the
> > > initial startx executed and not modified, so will generally be the terminal
> > > device itself.
> > Ye, i know. I have no time right now to handle this, maybe later i'll try
> > to understand what the problem is. But enforce_fs=0 helps. ;-)
>
> You haven't had any problems with XFree86's ioctl calls on the terminal
> device, right?
Yes, X server functions with out error messages on console. I've seen
errors only from x-clients (xterm, mozilla) and xinit.

PS. What's the status of capabilities integration into -current?


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