Re: Write to file #agl #koi #permissions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 6 Jul 2021 13:52:18 +0200
"Jan Simon Moeller" <jsmoeller@xxxxxxxxxxxxxxxxxxx> wrote:

> Isn't the writeable application home directory like
> /home/<userid-number>/app-data/<name-of-app>/
> 
> e.g.
> 
> /home/0/app-data/agl-service-hmi  ?
> 
> /usr/local/lib/.... is the 'installation' directory and should not be
> writeable by default.
> 

Yes that is also my idea. The default working directory of the
application

	$HOME/app-data/<name-of-app>/

is writable but the installation directory is not necessarily writeable.

It is of importance for multi-user behaviour.

I suggest to ste a hierachy of configuration if possible: use the
configuration file of the working directory, then a system config file
and then the install config file.

Best regards
José

> 
> Best regards,
> Jan-Simon
> 
> ------
> Jan-Simon Möller
> AGL Release Manager
> The Linux Foundation
> 
> Visit us at:
> www.automotivegradelinux.org
> lists.automotivelinux.org
> www.linuxfoundation.org
> 
> 
> On Tue, Jul 6, 2021 at 12:20 PM Jose Bollo <jose.bollo@xxxxxxx> wrote:
> 
> > On Tue, 06 Jul 2021 02:43:27 -0700
> > "Francesco ARGENTIERI (KINETON)" <francesco.argentieri@xxxxxxxxxx>
> > wrote:
> >
> > > > Have you checked audit messages in the journal?
> > >
> > > Yes, in the journal there aren't present audit regarding my
> > > service. 
> > > > user/group/other + read/write/execute from ls -l
> > >
> > > ```sh
> > > ls -l /usr/local/lib/afm/applications/agl-service-hmi/lib
> > > total 8904
> > > -rw-r--r--. 1 root root 9116016 Jul  6 09:35 libafm-hmi-binding.so
> > >
> > > ls -l /usr/local/lib/afm/applications/agl-service-hmi/conf
> > > total 8
> > > -rw-r--r--. 1 root root  27 Jul  6 09:35 status.json
> > > ```
> >
> > the owner is root
> >
> > > >How is installed your service? Have you created and installed a
> > > >widget?
> > >
> > > Yes, I used CMake to compile the project ```make widget```, then I
> > > installed by ```afm-util install agl-service-hmi.wgt```
> >
> > your widget probably runs as a not root user.
> >
> >
> >
> > 
> >
> >
> >
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9297): https://lists.automotivelinux.org/g/agl-dev-community/message/9297
Mute This Topic: https://lists.automotivelinux.org/mt/83998229/2167316
Mute #permissions:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/permissions
Mute #koi:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/koi
Mute #agl:https://lists.automotivelinux.org/g/agl-dev-community/mutehashtag/agl
Group Owner: agl-dev-community+owner@xxxxxxxxxxxxxxxxxxxxxxxxx
Unsubscribe: https://lists.automotivelinux.org/g/agl-dev-community/leave/4543822/2167316/883735764/xyzzy [list-automotive-discussions82@xxxxxxxxxxx]
-=-=-=-=-=-=-=-=-=-=-=-






[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux