Merge ~xnox/ubuntu/+source/os-prober:ubuntu/devel into ubuntu/+source/os-prober:ubuntu/devel

Proposed by Dimitri John Ledkov
Status: Merged
Merged at revision: d2983083e544e517d42fa4ce2571e8de935ae889
Proposed branch: ~xnox/ubuntu/+source/os-prober:ubuntu/devel
Merge into: ubuntu/+source/os-prober:ubuntu/devel
Diff against target: 52 lines (+9/-3)
4 files modified
common.sh (+1/-1)
debian/changelog (+6/-0)
os-probes/init/common/10filesystems (+1/-1)
os-probes/mounted/powerpc/20macosx (+1/-1)
Reviewer Review Type Date Requested Status
git-ubuntu import Pending
Review via email: mp+438461@code.launchpad.net

Commit message

Ignore logger socket-errors to workaround apparmor denials. (LP: #1826294)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/common.sh b/common.sh
2index e1646d4..16806a6 100644
3--- a/common.sh
4+++ b/common.sh
5@@ -59,7 +59,7 @@ cache_progname() {
6
7 log() {
8 cache_progname
9- logger -t "$progname" "$@"
10+ logger --socket-errors=off -t "$progname" "$@"
11 }
12
13 error() {
14diff --git a/debian/changelog b/debian/changelog
15index f22497a..fc5df72 100644
16--- a/debian/changelog
17+++ b/debian/changelog
18@@ -1,3 +1,9 @@
19+os-prober (1.81ubuntu2) lunar; urgency=medium
20+
21+ * Ignore logger socket-errors to workaround apparmor denials. (LP: #1826294)
22+
23+ -- Dimitri John Ledkov <dimitri.ledkov@canonical.com> Tue, 07 Mar 2023 13:28:14 +0000
24+
25 os-prober (1.81ubuntu1) kinetic; urgency=low
26
27 * Merge from Debian unstable (LP: #1987386). Remaining changes:
28diff --git a/os-probes/init/common/10filesystems b/os-probes/init/common/10filesystems
29index f50e55e..9d66e0e 100755
30--- a/os-probes/init/common/10filesystems
31+++ b/os-probes/init/common/10filesystems
32@@ -26,7 +26,7 @@ if [ ! -e /var/lib/os-prober/modules ]; then
33 fs-*)
34 ;;
35 *)
36- modprobe "$fs" 2>/dev/null | logger -t os-prober
37+ modprobe "$fs" 2>/dev/null | logger --socket-errors=off -t os-prober
38 ;;
39 esac
40 done
41diff --git a/os-probes/mounted/powerpc/20macosx b/os-probes/mounted/powerpc/20macosx
42index 2fc7e85..c128719 100755
43--- a/os-probes/mounted/powerpc/20macosx
44+++ b/os-probes/mounted/powerpc/20macosx
45@@ -8,7 +8,7 @@ type="$3"
46
47 debug() {
48 if [ -z "$OS_PROBER_DISABLE_DEBUG" ]; then
49- logger -t macosx-prober "debug: $@"
50+ logger --socket-errors=off -t macosx-prober "debug: $@"
51 fi
52 }
53

Subscribers

People subscribed via source and target branches