long contexts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



runcon -l s0:`/tmp/test.pl 630`-s0:`/tmp/test.pl 1023` id

The above command fails with error "File too large".  It seems that for full 
support of ranges with the pessimal combination of categories we could have 
no more than about 700 categories.

open("/selinux/context", O_RDWR)        = 3
write(3, "unconfined_u:unconfined_r:unconfi"..., 4088) = -1 EFBIG (File too 
large)

Above are the relevant lines from strace output.  I'm running Debian kernel 
2.6.18.  I expect that a single page is used by the kernel to store the data 
written to /selinux/context.

Below is the contents of /tmp/test.pl.

#!/usr/bin/perl

for($i=1; $i < $ARGV[0]; $i +=2)
{
  print "c$i,";
}
print "c1023\n";


NB  I don't have any good reason for wanting to do this.  I just wondered if I 
could break anything.

-- 
russell@xxxxxxxxxxxx
http://etbe.coker.com.au/          My Blog

http://www.coker.com.au/sponsorship.html Sponsoring Free Software development

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux