ubuntu IoT - webcam-demo 1.0.2 - apparmor="DENIED" operation="open" profile="webcam-demo.canonical_webcam-demo_1.0.2" name="/dev/video0" pid=3898 comm="fswebcam" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Installed the webcam-demo from the Snappy store.
Result: does not work
When trying to put it into complain mode:
sudo apparmor_parser -C /var/lib/
AppArmor parser error for /var/lib/
System info
===========
# Hardware
raspberry pi 2
# Software
snappy info
release: ubuntu-
architecture: armhf
frameworks: webdm.canonical
apps: webcam-
snappy list -v
Name Date Version Developer
ubuntu-core 2016-02-25 10 ubuntu*
ubuntu-core 2016-01-28 7 ubuntu
webcam-demo 2016-05-20 1.0.2 canonical*
webdm 2016-01-28 0.11 canonical*
pi2 2016-01-28 0.16 canonical
pi2 2016-05-18 0.17 canonical*
# Error from dmegs log
dmesg
...
Linux video capture interface: v2.00
gspca_main: v2.14.0 registered
gspca_main: STV06xx-2.14.0 probing 046d:08f6
gspca_stv06xx: st6422 sensor detected
input: STV06xx as /devices/
usbcore: registered new interface driver STV06xx
usbcore: registered new interface driver snd-usb-audio
...
audit: type=1400 audit(146356958
[Fri May 20 08:05:11 2016] audit: type=1400 audit(146373151
...
# System
ls -l /dev/video0
crw-rw---- 1 root video 81, 0 May 18 11:05 /dev/video0
systemctl status
...
<E2><94><82> <E2><94>
...
How can I fix this? Thank you.
Changed in snappy: | |
assignee: | nobody → Marc de Wit (marc-de-wit) |
assignee: | Marc de Wit (marc-de-wit) → nobody |
description: | updated |
Changed in snappy: | |
status: | New → Invalid |
Changed in snappy: | |
status: | Invalid → In Progress |
Hi
Can you please install the snap using: snap install --devmode instead
(don't manipulate apparmor rules manually, that's not enough for
"devmode")
Best regards
ZK
On Fri, May 20, 2016 at 10:57 AM, Marc de Wit <email address hidden> wrote: snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 in /var/lib/ snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 at line 45: syntax error, unexpected TOK_MODE, expecting TOK_OPEN core/15. 04/stable demo.canonical platform/ soc/3f980000. usb/usb1/ 1-1/1-1. 4/input/ input0 5.615:10) : apparmor="DENIED" operation="capable" profile= "webcam- demo.canonical_ webcam- demo_1. 0.2" pid=820 comm="golang- static- h" capability=12 capname="net_admin" 1.984:11) : apparmor="DENIED" operation="open" profile= "webcam- demo.canonical_ webcam- demo_1. 0.2" name="/dev/video0" pid=821 comm="fswebcam" requested_mask="wr" denied_mask="wr" fsuid=0 ouid=0 <9C><E2> <94><80> webcam- demo_webcam- demo_1. 0.2.service <9C><E2> <94><80> 817 /bin/sh /apps/webcam- demo.canonical/ 1.0.2/bin/ webcam- webui <9C><E2> <94><80> 820 golang-static-http <94><E2> <94><80> 4291 sleep 10 snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 in /var/lib/ snappy/ seccomp/ profiles/ webcam- demo.canonical_ webcam- demo_1. 0.2 at line 45: syntax error, unexpected TOK_MO...
> Public bug reported:
>
> Installed the webcam-demo from the Snappy store.
>
> Result: does not work
>
> When trying to put it into complain mode:
> sudo apparmor_parser -C /var/lib/
> AppArmor parser error for /var/lib/
>
> System info
> ===========
>
> # Hardware
> raspberry pi 2
>
> # Software
> snappy info
> release: ubuntu-
> architecture: armhf
> frameworks: webdm.canonical
> apps: webcam-
>
> snappy list -v
> Name Date Version Developer
> ubuntu-core 2016-02-25 10 ubuntu*
> ubuntu-core 2016-01-28 7 ubuntu
> webcam-demo 2016-05-20 1.0.2 canonical*
> webdm 2016-01-28 0.11 canonical*
> pi2 2016-01-28 0.16 canonical
> pi2 2016-05-18 0.17 canonical*
>
> # Error from dmegs log
> dmesg
> ...
> Linux video capture interface: v2.00
> gspca_main: v2.14.0 registered
> gspca_main: STV06xx-2.14.0 probing 046d:08f6
> gspca_stv06xx: st6422 sensor detected
> input: STV06xx as /devices/
> usbcore: registered new interface driver STV06xx
> usbcore: registered new interface driver snd-usb-audio
> ...
> audit: type=1400 audit(146356958
> [Fri May 20 08:05:11 2016] audit: type=1400 audit(146373151
> ...
>
> # System
> ls -l /dev/video0
> crw-rw---- 1 root video 81, 0 May 18 11:05 /dev/video0
>
> systemctl status
> ...
> <E2><94><82> <E2><94>
> <E2><94><82> <E2><94><82> <E2><94>
> <E2><94><82> <E2><94><82> <E2><94>
> <E2><94><82> <E2><94><82> <E2><94>
> ...
>
> How can I fix this? Thank you.
>
> ** Affects: snappy
> Importance: Undecided
> Status: New
>
> ** Description changed:
>
> Installed the webcam-demo from the Snappy store.
>
> Result: does not work
>
> When trying to put it into complain mode:
> sudo apparmor_parser -C /var/lib/
> AppArmor parser error for /var/lib/