Title: Permission model `--permission-audit` inconsistencies · Issue #65419 · nodejs/node · GitHub
Open Graph Title: Permission model `--permission-audit` inconsistencies · Issue #65419 · nodejs/node
X Title: Permission model `--permission-audit` inconsistencies · Issue #65419 · nodejs/node
Description: Version v26.7.0 Platform Linux localhostage 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux Subsystem permission model What steps will reproduce the bug? p_a_repro.js p_a_run.sh =============...
Open Graph Description: Version v26.7.0 Platform Linux localhostage 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux Subsystem permission model What steps will reproduce the bu...
X Description: Version v26.7.0 Platform Linux localhostage 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux Subsystem permission model What steps will reproduce the bu...
Opengraph URL: https://github.com/nodejs/node/issues/65419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Permission model `--permission-audit` inconsistencies","articleBody":"### Version\n\nv26.7.0\n\n### Platform\n\n```text\nLinux localhostage 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux\n```\n\n### Subsystem\n\npermission model\n\n### What steps will reproduce the bug?\n\n[p_a_repro.js](https://github.com/user-attachments/files/31260863/p_a_repro.js)\n[p_a_run.sh](https://github.com/user-attachments/files/31260862/p_a_run.sh)\n\n```\n====================================================\nRunning p_a_repro.js normally\n>dlopen> /path/to/any.node: cannot open shared object file: No such file or directory\n====================================================\nRunning p_a_repro.js with permission\n[AUDIT] node:permission-model:fs: FileSystemRead /etc/hosts\n>lstat> Access to this API has been restricted\n[AUDIT] node:permission-model:fs: FileSystemRead /etc/hosts\n>stat> Access to this API has been restricted. Use --allow-fs-read to manage permissions.\n[AUDIT] node:permission-model:fs: FileSystem \n>symlink> fs.symlink API requires full fs.read and fs.write permissions.\n>dlopen> Cannot load native addon because loading addons is disabled.\n====================================================\nRunning p_a_repro.js with permission-audit\n[AUDIT] node:permission-model:fs: FileSystemRead /etc/hosts\n>lstat> Access to this API has been restricted\n[AUDIT] node:permission-model:fs: FileSystemRead /etc/hosts\n[AUDIT] node:permission-model:fs: FileSystem \n>symlink> fs.symlink API requires full fs.read and fs.write permissions.\n>dlopen> Cannot load native addon because loading addons is disabled.\n====================================================\nRunning p_a_repro.js with permission-audit with allow\n>dlopen> /path/to/any.node: cannot open shared object file: No such file or directory\n(node:61707) [PERM0001] SecurityWarning: The flag --allow-addons must be used with extreme caution. It could invalidate the permission model.\n(Use `node --trace-warnings ...` to show where the warning was created)\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nalways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nAudit mode aka `--permission-audit` is documented as:\n> The [--permission-audit](https://nodejs.org/api/cli.html#--permission-audit) flag enables audit mode for the Permission Model. In audit mode, permission checks are performed but access is not denied — no ERR_ACCESS_DENIED error is thrown. Instead, each permission violation is published through the node:diagnostics_channel module, allowing the application to observe and log which operations would be denied under enforce mode. Execution continues normally.\n\nThe `Running p_a_repro.js normally` and `Running p_a_repro.js with permission-audit` should have the same outcomes/errors\n\n\n### What do you see instead?\n\n`--permission-audit` is enough to trigger some permission enforcement - namely on lstat, symlink and dlopen \n\n### Additional information\n\nI'm interested in contributing a fix. Might need some pointers.","author":{"url":"https://github.com/naugtur","@type":"Person","name":"naugtur"},"datePublished":"2026-08-20T09:58:42Z","url":"https://github.com/nodejs/node/issues/65419"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ec06edd-876b-9b38-3c27-9cfe70389451 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6DA:3E0336:F5BCCC:140FD22:6AED5B6C |
| html-safe-nonce | 1a633f5dc2cfa715683da3673468abd5a9acbce87a354133bb676a2b36e6f5bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkRBOjNFMDMzNjpGNUJDQ0M6MTQwRkQyMjo2QUVENUI2QyIsInZpc2l0b3JfaWQiOiI2NTE4MjAyOTY3NjIwNjcyMzY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a0df308a1e204014ffda7166fc2fc00f756ec5784ff8ced2b8e4d519fad6b83a |
| hovercard-subject-tag | issue:5202144843 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3af571e6e356e37258e7449087b6d004a107f063ae579d79c3277bdcf0f4833/nodejs/node/issues/65419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3af571e6e356e37258e7449087b6d004a107f063ae579d79c3277bdcf0f4833/nodejs/node/issues/65419 |
| og:image:alt | Version v26.7.0 Platform Linux localhostage 7.0.0-29-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 17 20:52:35 UTC 2026 x86_64 GNU/Linux Subsystem permission model What steps will reproduce the bu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naugtur |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width