SNAP_USER_COMMON

Vasilisc vasilisc777 at gmail.com
Tue Aug 2 06:39:51 UTC 2016


02.08.2016 09:00, Didier Roche пишет:
> Le 02/08/2016 à 07:45, Vasilisc a écrit :
>>
>> test snap raise error
>> -------------------------
>> echo "Writing to $SNAP_USER_COMMON"
>> mkdir -p $SNAP_USER_COMMON/platform
>> echo "hello common" > $SNAP_USER_COMMON/common.txt
>> --------------
>> grep -F audit syslog
>>
>> Aug  2 08:34:16 vb kernel: [ 2622.276193] audit: type=1400
>> audit(1470116056.762:34): apparmor="ALLOWED" operation="mkdir"
>> profile="snap.test2.test2" name="/home/vasilisc/snap/test2/common/"
>> pid=4971 comm="mkdir" requested_mask="c" denied_mask="c" fsuid=1000
>> ouid=1000
>
> Hey Vasilisc,
>
> where do you see an error in the above trace? Apparmor says "ALLOWED",
> so the mkdir call wasn't blocked and work as expected, or did you notice
> not having this directory and file created after those calls?
>
> Didier
>
LOL
command "snap run test2" output
execv failed: no such file or directory

BUT create empty folders
~/snap/common/
~/snap/x1/

work solution
"snap run test2; test2"
=)
========
	
* Isn't SNAP_USER_COMMON dir being created automatically by snapd? The 
launcher script in /snap/bin/ doesn't create it, and creating it 
manually inside the snap fails (permission denied). Running snap run app 
creates that folder, though (but the command fails with execv failed: No 
such file or directory... I have no idea how to use that command). – 
Bruno Nova Jul 11 at 20:14
  		
* Yes, it should be, but it's not (a bug that's fixed in the upcoming 
release where snap run is used). – Kyle Jul 11 at 21:05
   	 		
* Great, thank you! – Bruno Nova Jul 11 at 23:29
https://askubuntu.com/questions/762354/where-can-ubuntu-snaps-write-data
-- 
Best regards,
vasilisc




More information about the Snapcraft mailing list