Re: RSBAC&reiserfs


From: Amon Ott <ao@rsbac.org>
Subject: Re: RSBAC&reiserfs
Date: Tue, 3 Apr 2001 11:05:10 +0200

Next Article (by Subject): rsbac-admin as .deb file? Sebastian Andersson
Previous Article (by Subject): Re: RSBAC&reiserfs Amon Ott
Top of Thread: RSBAC&reiserfs Stanislav Ievlev
Articles sorted by: [Date] [Author] [Subject]


On Die, 03 Apr 2001 Amon Ott wrote:
> On Die, 03 Apr 2001 Stanislav Ievlev wrote:
> > Hello All!
> > 
> > There are some problems with reiserfs (as root filesystem). When I 
> > enable "check on init" option I cannot work because this "check" remove 
> > inodes from list when rsbac attributes exists.
> > 
> >    rsbac_check() if_item for bad inode  4376 on device 03:01, list 26 
> > removing
> > Then:
> >    vs-13048: reiserfs_iget:bad inode. Stat data of (3490 4376) not found
> > 
> > As I understood this is problem with iget() in rsbac_check(). Reiserfs 
> > needs 64bit information to find inode despite ext2fs. May be RSBAC 
> > hasn't full support for LFS.
> > 
> > With disabled option all works well.
> 
> ...until rsbac_check(1,1) is called for maintenance...
> 
> OK, I will investigate. Until fixed, please do not use reiserfs filesystem, or
> disable check on init *and* never call rsbac_check with inode checking.

This will be complicated. The temporary fix will not check inode numbers, if a
read_inode2 function exists. This means that with reiserfs there can be dead
entries in the fd lists, if something got deleted under a non-RSBAC kernel.

As there will be a new fd aci entry version for an RC model update, I could
change inode numbers to 64 bit. VFS will probably also be changed to 64 bit
soon, because of reiserfs, coda and afs having 64 bit numbers.

The problem is that it will become a bit slower, because 64 bit values are
slower on 32 bit CPUs. No real big problem, though.

BTW: LFS means that file offsets are 64 bits - the inode numbers are still 32
bit. This leads to various reiserfs workarounds which make things so complicated
for me.

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): rsbac-admin as .deb file? Sebastian Andersson
Previous Article (by Subject): Re: RSBAC&reiserfs Amon Ott
Top of Thread: RSBAC&reiserfs Stanislav Ievlev
Articles sorted by: [Date] [Author] [Subject]


Go to Compuniverse LWGate Home Page.