Welcome to the Linux Foundation Forum!

dmesg: read kernel buffer failed: Operation not permitted

I was trying to get the dmesg output after the hello world module loading. when I run sudo dmesg, This is the output I get.

116.904199] audit: type=1400 audit(1722741231.489:899): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/home/duck/.config/user-dirs.locale" pid=8763 comm="cp" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 116.908336] audit: type=1400 audit(1722741231.491:900): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/home/duck/.config/user-dirs.locale" pid=8764 comm="desktop-launch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 116.910779] audit: type=1400 audit(1722741231.496:901): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/etc/xdg/user-dirs.conf" pid=8765 comm="xdg-user-dirs-u" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 116.975616] audit: type=1400 audit(1722741231.562:902): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/usr/share/icons/" pid=8720 comm="desktop-launch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 116.975620] audit: type=1400 audit(1722741231.562:903): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/var/lib/snapd/desktop/icons/" pid=8720 comm="desktop-launch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 116.976482] audit: type=1400 audit(1722741231.563:904): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/etc/gnutls/config" pid=8797 comm="gdk-pixbuf-quer" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 116.976484] audit: type=1400 audit(1722741231.563:905): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/etc/gnutls/config" pid=8801 comm="gio-querymodule" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 122.101215] kauditd_printk_skb: 33 callbacks suppressed
[ 122.101217] audit: type=1400 audit(1722741236.687:939): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/home/duck/.config/user-dirs.dirs" pid=9058 comm="desktop-launch" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 122.131741] audit: type=1400 audit(1722741236.717:940): apparmor="DENIED" operation="open" class="file" profile="snap.snapd-desktop-integration.snapd-desktop-integration" name="/home/duck/.config/user-dirs.dirs" pid=9072 comm="sed" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

And a lot more

Can someone help me with this?

Comments

  • cvam0000
    cvam0000 Posts: 5
    edited August 5

    sudo sysctl -w kernel.dmesg_restrict=0
    check the dmesg tail you will get you prints !! if there are any

  • vyshaj
    vyshaj Posts: 5

    Oh that worked. Thank you so much @cvam0000 :))))

Categories

Upcoming Training