Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux chcon: can't apply partial context to unlabeled file

I'm getting and error when i'm trying to run this command:

chcon -t textrel_shlib_t /usr/lib/vmware-vcli/bin/esxcli/_ssl.so

The error that i got:

chcon: can't apply partial context to unlabeled file `/usr/lib/vmware-vcli/bin/esxcli/_ssl.so'

Any idea how to solve it?

like image 484
Alex Brodov Avatar asked Oct 25 '25 04:10

Alex Brodov


1 Answers

Try to run this:

chcon -h system_u:object_r:httpd_sys_content_t  /usr/lib/vmware-vcli/bin/esxcli/_ssl.so

instead of:

chcon -t textrel_shlib_t /usr/lib/vmware-vcli/bin/esxcli/_ssl.so
like image 156
SAR Avatar answered Oct 27 '25 17:10

SAR