Thks, Panu, installing policy package apparently did the trick (I already had SELINUX set to 'disabled'). Best, Andre On Sat, 14 Aug 2004 22:38:45 +0300 (EEST) Panu Matilainen <pmatilai@xxxxxxxxx> wrote: > On Sat, 14 Aug 2004, Andre Costa wrote: > > > Hi, > > > > every once in a while, when I use rpm on my FC2, this pops up: > > > > /etc/security/selinux/file_contexts: No such file or directory > > > > It seems to be harmless, but, still, suggests me that I should fix > > something... should I just touch the above file? Should I put > > something special in it? > > That happens at least on systems upgraded to FC2 from earlier versions > (vs fresh install) because "policy" package doesn't get installed. Fix > by installing the policy package, additionally you'll probably want to > > disable SELinux by putting SELINUX=disabled to /etc/sysconfig/selinux. > > I dunno what's the intended behavior, the error is easy enough to get > rid of but then I could imagine that on system where SELinux is > enabled on purpose you'd want to know if the file_contexts file > suddenly has gone missing. Anyway, this silences the error for the > better or worse and additionally removes the hardcoding of > file_contexts path (which still is present in rpm-head btw): > > --- rpm-4.3.1/lib/rpmsx.c.fc 2004-08-14 22:07:27.417316686 > +0300 > +++ rpm-4.3.1/lib/rpmsx.c 2004-08-14 22:30:02.579597168 +0300 > @@ -327,11 +327,10 @@ > > /*@-branchstate@*/ > if (fn == NULL) > - fn = "/etc/security/selinux/file_contexts"; > + fn = rpmGetPath("%{?_install_file_context_path}", NULL); > /*@=branchstate@*/ > > if ((fp = fopen(fn, "r")) == NULL) { > - perror(fn); > return -1; > } > > > - Panu - > > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list -- Andre Oliveira da Costa _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list