Re: Questions about REG-docs


From: Amon Ott <ao@rsbac.org>
Subject: Re: Questions about REG-docs
Date: Fri, 23 Mar 2001 14:17:00 +0100

Next Article (by Subject): R: access control by name, not inode "Alberto Guglielmo"
Previous Article (by Subject): Re: Questions about REG-docs Jörgen Sigvardsson
Top of Thread: Questions about REG-docs Jörgen Sigvardsson
Articles sorted by: [Date] [Author] [Subject]


On Fre, 23 Mär 2001 Jörgen Sigvardsson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Friday 23 March 2001 13:00, Amon Ott wrote:
> > On Fre, 23 Mär 2001 Jörgen Sigvardsson wrote:
> > > The REG-docs states that int rsbac_reg_write_func_t(boolean) should
> > > return either a negative error value, or a positive number of *lists*
> > > written to disk. Shouldn't it be number of items? And why does RSBAC care
> > > about this? stat-data for proc? (yes I know I can use the source, but
> > > today I woke up feeling lazy. Ever seen "Office Space" the movie? *grin*)
> >
> > The number is just for stats, e.g. the return value of sys_rsbac_write.
> > Still, return something useful, please.
> It was basically the usefulness I needed to know something about. Since I 
> only manage one list for this module, the return value for my module would be 
> the totally unexpected value 1. ;-) Wouldn't help me a great deal. But if I 
> report the number of items written to disk, I may have some use of that, so I 
> guess that'll be what I'll be returning.

The right values would then be:
nothing written: 0
your list was written: 1
error: error value by rsbac_write_open etc.

To the RSBAC framework all these values would indeed be useful.

Your best way would be to have a debug switch to enable your own logging with
all values you need, or to use your own registered syscall with useful return
values.

Amon.
-
To unsubscribe from the rsbac list, send a mail to
majordomo@rsbac.org with
unsubscribe rsbac
as single line in the body.

Next Article (by Subject): R: access control by name, not inode "Alberto Guglielmo"
Previous Article (by Subject): Re: Questions about REG-docs Jörgen Sigvardsson
Top of Thread: Questions about REG-docs Jörgen Sigvardsson
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.