Skip to content

Robot program running as root? #49

Open
@ThadHouse

Description

@ThadHouse

Discussed in #36

Originally posted by jwbonner June 25, 2025
It looks like the robot service currently runs the user program as root. Is there a good reason to do this instead of running as the systemcore user (with appropriate permissions for any resources it needs to access)? It seems like running as root increases the risk that a misbehaving user program could cause major issues on the device (for example, suppose a user program with an incorrect path configured somewhere starts inadvertently writing/overwriting files in a system directory). I assumed that this issue was the reason for running the user program as lvuser on the RIO.

One related issue regarding permissions is that it looks like systemcore doesn't have permission to write to USB drives with the current auto-mounting scheme. Obviously if the user program ran as that user it would need to be configured with write access to USB drives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions