Skip to content

Commit

Permalink
RHEL-15110: Fix issue with registration using gsd-subman
Browse files Browse the repository at this point in the history
* We were too agresive, when we fixed CVE in this PR:
  #3317
* It is still safe to allow non-root user to create abstract
  socket using Start() on interface com.redhat.RHSM1.RegisterServer
  and destroy it later using Stop(). This abstract socket
  could be later used by root user for calling e.g. Register()
  on interface com.redhat.RHSM1.Register. This is way how
  it works for gsd-subman (run by non-root user) and
  gsd-subman-helper (run by root user).
  • Loading branch information
jirihnidek authored and ptoscano committed Jan 5, 2024
1 parent 30c861f commit ba1e0e4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions etc-conf/dbus/system.d/com.redhat.RHSM1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@
send_interface="com.redhat.RHSM1.Config"
send_member="Get"/>

<!--
Non-root user can create abstract socket with Start()
method and only root user or user with same UID can
use this socket. Only root user can use such socket
for calling Register() on interface
com.redhat.RHSM1.Register
-->
<allow send_destination="com.redhat.RHSM1"
send_interface="com.redhat.RHSM1.RegisterServer"
send_member="Start"/>

<allow send_destination="com.redhat.RHSM1"
send_interface="com.redhat.RHSM1.RegisterServer"
send_member="Stop"/>

<!--
The UUID returned by following method is read
from consumer cert. Only this file is not
Expand Down

0 comments on commit ba1e0e4

Please sign in to comment.