On the all-snaps image, snappy-debug.security can't access syslog

Bug #1621324 reported by Leo Arias
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Confirmed
High
Unassigned
livecd-rootfs (Ubuntu)
New
Undecided
Unassigned
subiquity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Tested in rpi2, using today's image from http://cdimage.ubuntu.com/ubuntu-snappy/16.04/current/ubuntu-core-16-pi2.img.xz

After boot and configuration, I logged in using ssh and installed snappy-debug to debug the snapweb problems. However, the snap can't access syslog even after connecting the plug:

elopio@localhost:~$ snappy-debug.security scanlog
sysctl: permission denied on key 'kernel.printk_ratelimit'
Could not open '/var/log/syslog'. Did you run 'sudo snap connect snappy-debug:log-observe ubuntu-core:log-observe'?
elopio@localhost:~$ sudo snap interfaces snappy-debug
Slot Plug
:log-observe snappy-debug

Revision history for this message
Oliver Grawert (ogra) wrote :

the user created by console-conf is not in the adm group which is the group used to allow log access in ubuntu

Revision history for this message
Oliver Grawert (ogra) wrote :

since the adm group is inside the readonly /etc/group, we should move it to /var/lob/extrausers/group, adding a livecd-rootfs task

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The snappy-debug message could also be improved. I'll make sure that happens.

Leo Arias (elopio)
affects: snapweb → snappy
Changed in snappy:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I don't think there's anything to do in console-conf for this.

Changed in subiquity (Ubuntu):
status: New → Invalid
Revision history for this message
Oliver Grawert (ogra) wrote :

well, console-conf creates the user and should add the user to the group ...

(adduser $user --extrausers adm)

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Surely that's something that should be done by snap create-user --sudoer? I guess not. Nothing is possible here until the livecd bits get done anyway, right?

Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.