Re: Question on semanage fcontext -a

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

 



On Mon, 2008-02-04 at 23:51 +0900, Shintaro Fujiwara wrote:
> 2008/2/4, Stephen Smalley <sds@xxxxxxxxxxxxx>:
>         semanage fcontext -a adds entries to the local file contexts
>         configuration.  It doesn't directly relabel any files.  Then,
>         after
>         you've run semanage fcontext -a to add the entry, you can run
>         restorecon
>         or other relabeling programs to actually relabel the files to
>         the
>         context you've specified in the entry.
> 
> OK, I understand.
> So, I have to relabel by restorecon after I semanage fcontext -a path,
> right ?

Yes.  You don't have to do a full relabel, of course, just a restorecon
of the relevant directories and/or files.

> I already re-written my program (segatex) to restorecon after semanage
> fcontext -a -m.
> 
> Thank you very much.

-- 
Stephen Smalley
National Security Agency

--
fedora-selinux-list mailing list
fedora-selinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-selinux-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux