View topic - Secpol and File Permissions

Secpol and File Permissions

General Help about QNX

Secpol and File Permissions

Postby adamm » Tue Oct 20, 2020 7:25 pm

Hi,

I have a file with the following permissions:
rw-------

I'm trying to open this file from a non-root process and I'm, of course, not able to open it. Is it possible with secpol to make this process able to open this file?
Or I totally got the wrong idea of what is secpol and what is it used for?
adamm
New Member
 
Posts: 2
Joined: Tue Oct 20, 2020 8:39 am

Re: Secpol and File Permissions

Postby maschoen » Wed Oct 21, 2020 1:55 am

What is secpol? I google it and find that Windows 10 has a program called secpol, short for security policy. Could this be what you are asking about?

There are two ways you access this file. If you have a program that has +s permission and owner root, it can access the file. Of course to set the +s permission you would need root access. The other way is to get root access. If you run "su" you will be asked for the root passwoard.
maschoen
QNX Master
 
Posts: 2728
Joined: Wed Jun 25, 2003 5:18 pm

Re: Secpol and File Permissions

Postby adamm » Wed Oct 21, 2020 6:20 am

@machoen
I'm talking about this secpol: http://www.qnx.com/developers/docs/7.0. ... l/mac.html
adamm
New Member
 
Posts: 2
Joined: Tue Oct 20, 2020 8:39 am

Re: Secpol and File Permissions

Postby maschoen » Wed Oct 21, 2020 6:39 am

This appears to be a layer on top of Posix that QNX has invented to provide sandboxing of applications. It looks like something they might have used for the BlackBerry QNX phone and paid.

It won't let you get around the Posix file permissions, which I think is what you want.
maschoen
QNX Master
 
Posts: 2728
Joined: Wed Jun 25, 2003 5:18 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 3 guests