Skip to content

too-wide

Rule too wide may lead to confinement escape or data leaks.

Problematic rule

# WRONG
/tmp/** rw,
# WRONG
/etc/** rw,

Correct rule

Limit access to only required files as much as you can. For example:

/tmp/<profile>@{rand6}/{,**} rw,
/etc/<profile>/** rw,

Rationale

Full access to entire config and temporary directories is dangerous as it may allow confinement escape or data leaks. It is better to restrict access to only the required files or subdirectories.

Exceptions

When a profile needs access to the full system, because it is a package manager for example.