Skip to content

Tor Browser does not work on unprivileged Selinux users #2802

@PhysicsIsAwesome

Description

@PhysicsIsAwesome

Tor Browser installed through Fedora's torbrowser-launcher package needs some additional rules to make it work on unprivileged Selinux users. These rules were needed to make it work on my device. xguest still does not work, but staff and user work.

gen_require(`
    type tor_port_t;
    class tcp_socket name_bind;
    attribute unpriv_userdomain, port_type;
')

type torbrowser_port_t, port_type;
allow unpriv_userdomain tor_port_t:tcp_socket name_bind;
allow unpriv_userdomain torbrowser_port_t:tcp_socket name_bind;

torbrowser_port_t is a port type which I needed to add, because Tor Browser needs access to tcp port 9151, which normally is unreserved_port_t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions