X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/yaid/blobdiff_plain/b9eb1a366ff0127c49a0589905435680b137d49f..HEAD:/policy.c diff --git a/policy.c b/policy.c index 9a9e2e2..9cb9af9 100644 --- a/policy.c +++ b/policy.c @@ -441,6 +441,11 @@ fail: /* Open a policy file by NAME. The description WHAT and query Q are used for * formatting error messages for the log. + * + * This function is somewhat careful only to read from actual regular files, + * though (if the filesystem object identified by NAME is a symlink, say) it + * might open a device node or other exotic thing without reading it. This + * is likely harmless, since we're running as an unprivileged user anyway. */ int open_policy_file(struct policy_file *pf, const char *name, const char *what, const struct query *q, unsigned f)