Want an easy way of asserting that a given filepath is a file with restricted permissions, i.e. 0400 or 0600. (Implicitly ensuring the file belongs to the application's unix process).
e.g.
filesafe.ReadOnly("/etc/application/config.toml")
filesafe.ReadWrite("/var/databases/application.db")
Want an easy way of asserting that a given filepath is a file with restricted permissions, i.e.
0400or0600. (Implicitly ensuring the file belongs to the application's unix process).e.g.