Debian Codegraph @

debian/patches/2001_no-functional-LinuxSecurityContext-support-in-Debians-kernel.patch

raw symbols SCIP
1 Descriptionscip-debian debian lomiri-online-accounts 0.21-1 lomiri-online-accounts/patches/`2001_no-functional-LinuxSecurityContext-support-in-Debians-kernel.patch`#Description.: Let src/utils.cpp:apparmorProfileOfPeer() always return 'unconfined'.
2 Authorscip-debian debian lomiri-online-accounts 0.21-1 lomiri-online-accounts/patches/`2001_no-functional-LinuxSecurityContext-support-in-Debians-kernel.patch`#Author.: Mike Gabriel <[email protected]scip-debian . . . identity/`[email protected]`.>
3 Abstractscip-debian debian lomiri-online-accounts 0.21-1 lomiri-online-accounts/patches/`2001_no-functional-LinuxSecurityContext-support-in-Debians-kernel.patch`#Abstract.:
4 Debian's kernel lacks proper LinuxSecurityContext support. There is an
5 Apparmor-specific kernel patch that has never made it to Linux upstream
6 for now.
7 .
8 Details: It appears that AppArmor SO_PEERSEC support for unix domain
9 sockets bound to a filesystem path name is missing from the upstream
10 kernel and is only enabled as a side effect of a patch distributed with
11 AppArmor:
12 https://gitlab.com/apparmor/apparmor/-/blob/692e6850ba90582105713a683bed753bad696aab/kernel-patches/v4.17/0002-apparmor-af_unix-mediation.patch
13 .
14 Ubuntu kernels contain a rebased variant of the patch which is likely
15 why SO_PEERSEC works on Ubuntu.
16 .
17 See: https://bugs.debian.org/1092591
18
19 --- a/online-accounts-service/src/utils.cppscip-debian debian lomiri-online-accounts 0.21-1 lomiri-online-accounts/upstream/`online-accounts-service/src/utils.cpp`:
20 +++ b/online-accounts-service/src/utils.cppscip-debian debian lomiri-online-accounts 0.21-1 lomiri-online-accounts/upstream/`online-accounts-service/src/utils.cpp`:
21 @@ -33,6 +33,23 @@
22 {
23 static QString ourProfile;
24
25 + /* Debian's kernel lacks proper LinuxSecurityContext support. There is an
26 + * Apparmor-specific kernel patch that has never made it to Linux upstream
27 + * for now.
28 + *
29 + * Details: It appears that AppArmor SO_PEERSEC support for unix domain
30 + * sockets bound to a filesystem path name is missing from the upstream
31 + * kernel and is only enabled as a side effect of a patch distributed with
32 + * AppArmor:
33 + * https://gitlab.com/apparmor/apparmor/-/blob/692e6850ba90582105713a683bed753bad696aab/kernel-patches/v4.17/0002-apparmor-af_unix-mediation.patch
34 + *
35 + * Ubuntu kernels contain a rebased variant of the patch which is likely
36 + * why SO_PEERSEC works on Ubuntu.
37 + *
38 + * See: https://bugs.debian.org/1092591
39 + */
40 + return QString("unconfined");
41 +
42 QString uniqueConnectionId = message.service();
43 /* This is mainly for unit tests: real messages on the session bus always
44 * have a service name. */