Project

General

Profile

Actions

Bug #6495

closed

systemd/uhd permission issues

Added by Hoernchen 4 days ago. Updated 4 days ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
Start date:
06/26/2024
Due date:
% Done:

100%

Spec Reference:

Description

https://gerrit.osmocom.org/c/osmo-trx/+/36714 introduced HOME, but %h is This is the home directory of the user running the service manager instance. In case of the system manager this resolves to "/root". Note that this setting is not influenced by the User= setting configurable in the [Service] section of the service unit.

This completely breaks osmo-trx:

osmo-trx-uhd[4013]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
osmo-trx-uhd[4013]:   what():  boost::filesystem::status: Permission denied: "/root/.config/uhd.conf" 
osmo-trx-uhd[4013]: signal 6 received
Actions #1

Updated by osmith 4 days ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90

Thanks for the report. This should fix it, please give it a try:
https://gerrit.osmocom.org/c/osmo-trx/+/37295

Note that the original patch setting HOME was https://gerrit.osmocom.org/c/osmo-trx/+/35127. The one you linked to was the cherry-picked version for the 1.6.2 release, which does not yet have the change to run osmo-trx-uhd as user instead of root (https://gerrit.osmocom.org/c/osmo-trx/+/30131).

Actions #2

Updated by osmith 4 days ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)