Re: Issues trying to change the selinux context

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



Warren Young wrote:
> On May 8, 2019, at 9:31 AM, mark <m.roth@xxxxxxxxx> wrote:
>
>> semanage -fcontext -a -t lib_t "/<elided>/smwa/webagent/bin(/.*).so”
>
> [snip]
>
>> What am I doing wrong?
>>
<snip>
> Also, I’m confused by the parens in your file path.  Whether your shell
> is or not is a different question.

I'm following the manpage, semanage-fcontext, example as much as possible.
EXAMPLE
       remember to run restorecon after you set the file context
       Add file-context for everything under /web
       # semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
       # restorecon -R -v /web

If semanage worked "normally", I'd have been able to do
semanage fcontext -m -t lib_t "/path/smwa/webagent/bin/*.so"

Hmmm, didn't complain when I did that... but they're still bin_t, not lib_t.

On the selinux list, I was asked for the context of the directory, which
is bin_t, which might be correct... if the idiots of CA had a ./lib
directory, which they do not. Windows turkeys....

       mark
    mark

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux