Thanks for your feedback
I have written a small shell script, to track write access to the
'/etc/config' directory.
For this task I am using the inotify-tool package [1].
I am using the inotifywait tool to add the watchers [2] with a small
shell script and log them to the syslog.
If I change a 'uci' option with the the 'uci' commands, then I get
create and write events for a temporary file in the '/etc/config/'
directory.
I didn't expect it to be like this.
For example, if I now change a file using the 'uci' command, a tmp
file
is created under '/etc/config'.
Is this correct? Or do we have a problem there.
AFAIK tmp config are written in /tmp...
But if I read this correctly, what inotifywait does, then these are
events that happen in '/etc/config' and not in '/tmp'.
I have not added a inotify to '/tmp'.
I already thought that these are temporary files.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel