Re: Write to file #agl #koi #permissions


Jose Bollo
 

On Tue, 06 Jul 2021 02:20:02 -0700
"Francesco ARGENTIERI (KINETON)" <francesco.argentieri@...>
wrote:

On Tue, Jul 6, 2021 at 11:12 AM, Jose Bollo wrote:


If your application runs with the label User::App::agl-service-hmi
then it is not an issue with Smack security module.

If your application has an other label, it is an other story. If you
are not sure, you can check it using 'ps -Z'.
```sh
h3ulcb:~# ps -Z
LABEL PID TTY TIME CMD
System 701 ttySC0 00:00:00 login
System 1058 ttySC0 00:00:00 sh
System 1113 ttySC0 00:00:00 ps
```
That is not the process status of your service. You have to add some
argument to get that status. If you try to run your service from
command line, logged as root, it can explain the issue. Have you
checked audit messages in journal?


Have you checked DAC permissions?

No, can you explain?
user/group/other + read/write/execute from ls -l

Launched by AGL framework, your application runs in an appropriate
working directory dedicated to its uses. Have you tried to write in
the current working directory?
Can you be more precise? In this passage what are you referring to?
How is installed your service? Have you created and installed a widget?

Join agl-dev-community@lists.automotivelinux.org to automatically receive all group messages.