missing lines in apparmor config for sssd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sssd (Ubuntu) |
Fix Released
|
Undecided
|
Michał Małoszewski | ||
Jammy |
Confirmed
|
Low
|
Unassigned |
Bug Description
[Impact]
* Users of sssd reported extraneous ALLOWED messages from apparmor in /var/log/syslog while trying to login to the server via ssh.
* This crash is caused by the lack of some entries in apparmor-profile file.
The fix is to add:
- #include <abstractions/
- @{PROC}
- /var/lib/sss/mc/* rwk,
- /{,var/
in the right order to the apparmor-profile file.
[Test Plan]
lxc launch ubuntu:22.04 test1
lxc shell test1
1. # apt install slapd ldap-utils -y
2. # dpkg-reconfigure slapd
3. # apt install sssd
4. # vim /etc/ssh/sssd.conf
5. Enter configuration that fits to your system.
6. # systemctl restart sssd
7. # systemctl enable sssd
8. Exit the container.
9. SSH into that container.
10. Check /var/log/syslog.
Example of failed output:
Oct 16 18:55:31 ubuntu2204.
Dec 16 18:55:31 ubuntu2204.
Example of successful output:
No apparmor messages like these present.
[Where problems could occur]
* @{PROC}
* There is additional possible regression related to the:
-/{,var/
there might be regression related to user sessions managed by systemd.
-------
I noticed these kinds of extraneous ALLOWED messages from apparmor in /var/log/syslog:
=====
Dec 8 15:24:33 ubuntu2204.
Dec 8 15:24:51 ubuntu2204.
=====
As a workaround to silence these, I added the following lines to /etc/apparmor.
@{PROC}
/run/systemd/
I'm guessing the proper fix is to add these lines to /etc/apparmor.
Related branches
- Lucas Kanashiro (community): Needs Information
- git-ubuntu import: Pending requested
-
Diff: 53 lines (+12/-1)2 files modifieddebian/apparmor-profile (+4/-1)
debian/changelog (+8/-0)
- git-ubuntu bot: Approve
- Sergio Durigan Junior (community): Approve
- Canonical Server Reporter: Pending requested
-
Diff: 53 lines (+12/-1)2 files modifieddebian/apparmor-profile (+4/-1)
debian/changelog (+8/-0)
Changed in sssd (Ubuntu): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Changed in sssd (Ubuntu Jammy): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
tags: | added: server-todo |
description: | updated |
description: | updated |
Changed in sssd (Ubuntu Jammy): | |
assignee: | Michał Małoszewski (michal-maloszewski99) → nobody |
This is with Ubuntu 22.04.