Re: [PATCH] cockpit web admin system

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

 




On 4/26/21 2:47 PM, Chris PeBenito wrote:
> On 4/20/21 9:49 AM, Dominick Grift wrote:
>> Russell Coker <russell@xxxxxxxxxxxx> writes:
>>
>>> I took this from the rawhide policy and adapted it to work with
>>> refpolicy.
>>>
>>> Probably not ready for merging yet, let me know what should be changed.
>>
>> Its been a while since I played with cockpit
>>
>> Theres one thing that I want to mention though, instead of login the
>> confined users in with their login shell domain consider confining the
>> cockpit-bridge instead and make it log users in with bridge context
>> instead of the login shell context.
> 
> Do you have an example of permissions that would be concerning?

The wide direct dbus access might be concerning.

cockpit-bridge (at least when I used it) seems to chat directly with
various system services like firewalld,tuned,udisks but also various
systemd components including pid1 (although not sure if the latter are
direct or via systemctl.

There's a bunch of other access that I can't explain anymore and some of
it does not make sense. Theres network access (connects to vnc and binds
tcp sockets to ephemeral ports)

I also allowed it to mapread shadow unconditionally but that does not
make sense as shadow is mode 000 and even if the bridge would be run by
a root login it still seems to not have cap_dac_read_search access ...

https://git.defensec.nl/?p=dssp2.git;a=blob;f=policy/services/c/cockpit.cil;h=f09d5084ba0c9f1b671b26772b29eb383c40e60a;hb=HEAD#l95

Things may have changed since then as well. I just wanted to give a
heads-up, it may be nothing to worry about.

> 
> 
>> Because otherwise you'll end up extending the login shell domain with
>> permissions needed by the bridge. You can still allow the bridge to open
>> up a shell with a transition back to the login shell domain (but then
>> you will get into domain prefixes
>>
>> ie: staff_bridge_t -> shell_exec_t -> staff_t vs. user_bridge_t ->
>> shell_exec_t -> user_t etc.
> 
> 
> Otherwise I only see some style cleanup needed.  Also there is an
> optional block in the admin interface for systemd calls.  Systemd is
> required for cockpit, so it shouldn't be optional, right?
> 



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux