You are not logged in.

#1 2016-07-29 11:09:26

shark193
Member
Registered: 2016-07-29
Posts: 2

[SOLVED]'-Z' option in 'ls' is not working.

I installed Arch Linux about a month ago. Most of the time I follow Arch Linux wiki. It was enough for me. Now I need help with SELinux context manipulation. Arch Linux does not come with SELinux. The wiki about SELinux also seems a lot of work to get into. And I thought I can do without SELinux. A few days ago I mounted a Android system partition in my Arch Linux. I tried to know SELinux contexts of files in that disk image. I used "ls -Z". Unfortunately I got no context information. Is there any solution to this?

Last edited by shark193 (2016-07-30 11:26:23)

Offline

#2 2016-07-29 12:08:39

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]'-Z' option in 'ls' is not working.

You'd need to recompile coreutils with support for selinux. As a workaround, you might be able to just use lsattr to list the raw xattrs on the file. This should effectively give you the same information.

Last edited by falconindy (2016-07-29 12:09:31)

Offline

#3 2016-07-30 05:57:39

shark193
Member
Registered: 2016-07-29
Posts: 2

Re: [SOLVED]'-Z' option in 'ls' is not working.

I have compiled coreuils-selinux from AUR. It worked! Is my system full SELinux ready now? I checked with "getenforce". It returned 'Disabled'.

Offline

#4 2016-07-30 06:49:56

TheChickenMan
Member
From: United States
Registered: 2015-07-25
Posts: 354

Re: [SOLVED]'-Z' option in 'ls' is not working.

shark193 wrote:

I have compiled coreuils-selinux from AUR. It worked! Is my system full SELinux ready now? I checked with "getenforce". It returned 'Disabled'.

There's a ton of programs that need to be compiled with support for SELinux for it to work, not to mention the need for a good working policy. I'm not sure how good/complete the reference policy is in Arch. Read the wiki. I definitely have respect for the Fedora devs for how well they've made the whole thing work over there.


If quantum mechanics hasn't profoundly shocked you, you haven't understood it yet.
Niels Bohr

Offline

Board footer

Powered by FluxBB