Comments (4)
I can confirm that.
The same measure has fixed the issue for me.
There is a line in the default login profile like:
@{bin}/{,z,ba,da}sh rUx,
Adding the "fi" to the regex would solve this issue.
The resulting line would look like this:
@{bin}/{,z,ba,da,fi}sh rUx,
from apparmor.d.
I've compiled a list of common shell binaries we may want to add: #270
However, a quick search in the codebase reveals many profiles having a list of shells. I think probably better to have some kind of abstraction (e.g. abstractions/shell
) rather than using a hard-coded list for each program.
from apparmor.d.
I've compiled a list of common shell binaries we may want to add: #270
However, a quick search in the codebase reveals many profiles having a list of shells. I think probably better to have some kind of abstraction (e.g.
abstractions/shell
) rather than using a hard-coded list for each program.
I guess that could be a solution but then we would need multiple additional abstractions.
If i'm not mistaken we would need at least one for "inherit execute" rix,
like in the profile for ssh and another abstracton for "unconfined execute" rUx,
like the one in login or sudo.
from apparmor.d.
The solution is to have a new variable that list all the possible interactive shell. Then it can be used in the profile like: @{bin}/@{sh} rUx,
or @{bin}/@{sh} rix,
depending on the need. I implement this soon
from apparmor.d.
Related Issues (20)
- Apparmor option to specify $PWD in profile rules HOT 4
- Flatpak / bubblewrap no longer working HOT 5
- aalog -r and -R do not honor the owner qualifier HOT 2
- EndeavourOS does not boot after installing apparmor.d-git HOT 5
- Firefox profile capabilities HOT 3
- Question: No New Privs HOT 1
- Flatpak aa-log HOT 2
- build process should not require a network connection HOT 2
- build security of dependencies? HOT 2
- Found reference to variable gdm_local_dirs, but is never declared (gnome-keyring-daemon) HOT 1
- aa-log reports from EndeavourOS (Arch, KDE) HOT 2
- Mutt child-pager HOT 1
- Visual Studio Code C# intellisense/debugger does not work with AppArmor enabled HOT 11
- torbrowser-start regex parser error HOT 8
- Pacman prints 'error: could not get current working directory' HOT 1
- Flatpak stops working normally when apparmor.d is installed HOT 14
- Problems with libpam-tmpdir and GDM HOT 1
- PAM auth doesn't work for systemd-homed users HOT 1
- Unable to build on Ubuntu 24.04 HOT 3
- Cannot build on debian bookworm: missing slices package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apparmor.d.