danwalsh


Dan Walsh's Blog

Got SELinux?


Previous Entry Share Next Entry
Why I love Open Source... II
danwalsh
When SELinux does a full relabel, it prints a * for each 1000 files that it relabels.

Some users were complaining about a full relabel and not being able to estimate how much time was left. 

I explained to them that I did not know how many files were on the file system, so I could not estimate how much time was left.  They explained to me that there was ways to look at the file system and get then number of inodes, and then you could estimate how much time was left.  I told them patches accepted, and within a couple of days, I got a patch from John Reiser. 

As of policycoreutils-2.1.10-21.fc17

If you do a touch /.autorelabel; reboot or a fixfiles restore

You will see output like


# fixfiles  restore
10%

With the counter slowly rising.

Open source opens the possibility for all of us to contribute and make the whole better.

Thanks John.

This is a neat project, but it seems to be a bit buggy. I just did my relabel for the /usr move: the counter seemed sane at first, but when I looked back at it it was somewhere around 250%. I think it finished up at about 300%, then when it was done, the percentage got displayed as a very large negative number - like minus two billion or something - for some reason.

Yes I think there are some warts to work out. I take it you had more then one file system mounted.

I think the current patch works best if you have one file system mounted.

But it is better to open bugs in bugzilla, please.

You are viewing danwalsh