beside the privilege, it's more useful to modify the timestamp for IoT
device by utime:
https://pubs.opengroup.org/onlinepubs/009604599/functions/utime.html
BTW, the permission is meaningless in FLAT mode with the unsafe
language(e.g. C/C++).

On Mon, Apr 26, 2021 at 2:39 AM Gregory Nutt <spudan...@gmail.com> wrote:

>
> On 4/25/2021 12:31 PM, Alan Carvalho de Assis wrote:
> > Hehehe, you are not the first one to notice it, in fact I commented
> > that this kind of code exist but is not implemented:
> >
> > https://issues.apache.org/jira/browse/NUTTX-8
>
> To be a POSIX, Unix-like system, NuttX should support privileges.
> Adding privileges to the NSH login would be pretty easy (I actually
> started that one time in the past).
>
> There has been no motivation to implement this feature, mostly because
> the only file system with privilege information is ROMFS. But privileges
> are more than just file privileges:  I could be useful to have
> super-user capabilities in NSH for many things, not just file access.
>
>
>

Reply via email to