René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4ec06edd-876b-9b38-3c27-9cfe70389451
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB6DA:3E0336:F5BCCC:140FD22:6AED5B6C
html-safe-nonce1a633f5dc2cfa715683da3673468abd5a9acbce87a354133bb676a2b36e6f5bd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkRBOjNFMDMzNjpGNUJDQ0M6MTQwRkQyMjo2QUVENUI2QyIsInZpc2l0b3JfaWQiOiI2NTE4MjAyOTY3NjIwNjcyMzY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca0df308a1e204014ffda7166fc2fc00f756ec5784ff8ced2b8e4d519fad6b83a
hovercard-subject-tagissue:5202144843
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65419/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3af571e6e356e37258e7449087b6d004a107f063ae579d79c3277bdcf0f4833/nodejs/node/issues/65419
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3af571e6e356e37258e7449087b6d004a107f063ae579d79c3277bdcf0f4833/nodejs/node/issues/65419
og:image:altVersion 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenaugtur
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65419#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65419
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65419
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/65419
Reloadhttps://github.com/nodejs/node/issues/65419
Reloadhttps://github.com/nodejs/node/issues/65419
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues654 (654)https://github.com/nodejs/node/issues
Pull requests662 (662)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65419
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65419
Permission model --permission-audit inconsistencieshttps://github.com/nodejs/node/issues/65419#top
permissionIssues and PRs related to the Permission Model.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22permission%22
https://github.com/naugtur
naugturhttps://github.com/naugtur
on Aug 20, 2026https://github.com/nodejs/node/issues/65419#issue-5202144843
p_a_repro.jshttps://github.com/user-attachments/files/31260863/p_a_repro.js
p_a_run.shhttps://github.com/user-attachments/files/31260862/p_a_run.sh
--permission-audithttps://nodejs.org/api/cli.html#--permission-audit
trivikrhttps://github.com/trivikr
permissionIssues and PRs related to the Permission Model.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22permission%22
on Aug 21, 2026https://github.com/nodejs/node/issues/65419#event-29784477259
https://github.com/theSnackOverflow
theSnackOverflowhttps://github.com/theSnackOverflow
on Aug 30, 2026https://github.com/nodejs/node/issues/65419#issuecomment-5466886168
lib: handle --permission-audit when propagating flags #63047https://github.com/nodejs/node/pull/63047
https://github.com/nodejs/node/blob/045ff95365c/src/env.cc#L988-L991https://github.com/nodejs/node/blob/045ff95365c/src/env.cc#L988-L991
https://github.com/nodejs/node/blob/045ff95365c/src/node_binding.cc#L450-L455https://github.com/nodejs/node/blob/045ff95365c/src/node_binding.cc#L450-L455
#65659https://github.com/nodejs/node/pull/65659
theSnackOverflowhttps://github.com/theSnackOverflow
on Aug 30, 2026https://github.com/nodejs/node/issues/65419#event-30230177269
permission: do not enforce fs and addons in audit modehttps://github.com/theSnackOverflow/node/commit/2bbef4ad87133a5c38ef734b01b11360cd32d60d
2bbef4ahttps://github.com/theSnackOverflow/node/commit/2bbef4ad87133a5c38ef734b01b11360cd32d60d
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
f85bb5ehttps://github.com/nodejs/node/commit/f85bb5ed783a4b40f90d55a45099c8dbc853d47c
on Sep 4, 2026https://github.com/nodejs/node/issues/65419#event-30585268307
pullhttps://github.com/apps/pull
on Sep 4, 2026https://github.com/nodejs/node/issues/65419#event-30586227087
permission: do not enforce fs and addons in audit modehttps://github.com/LuckQuack/node/commit/f85bb5ed783a4b40f90d55a45099c8dbc853d47c
f85bb5ehttps://github.com/LuckQuack/node/commit/f85bb5ed783a4b40f90d55a45099c8dbc853d47c
aduh95https://github.com/aduh95
on Sep 7, 2026https://github.com/nodejs/node/issues/65419#event-30701505020
permission: do not enforce fs and addons in audit modehttps://github.com/nodejs/node/commit/07d004cf227c0d17d04f0712826419d4987afce3
07d004chttps://github.com/nodejs/node/commit/07d004cf227c0d17d04f0712826419d4987afce3
permission: do not enforce fs and addons in audit modehttps://github.com/nodejs/node/commit/db81249fcfa4c4170c220c2fd8cd45a5b122dbf7
db81249https://github.com/nodejs/node/commit/db81249fcfa4c4170c220c2fd8cd45a5b122dbf7
aduh95https://github.com/aduh95
on Sep 15, 2026https://github.com/nodejs/node/issues/65419#event-31161528122
permission: do not enforce fs and addons in audit modehttps://github.com/nodejs/node/commit/67a78317dd7de5d8ed7fb3e991ad432d03a3bf19
67a7831https://github.com/nodejs/node/commit/67a78317dd7de5d8ed7fb3e991ad432d03a3bf19
Mrtenzhttps://github.com/Mrtenz
on Sep 24, 2026https://github.com/nodejs/node/issues/65419#event-31757145740
Add a permission audit script for generating LavaMoat configshttps://github.com/MetaMask/metamask-module-template/commit/7155726c6134d62c468e7b09046430b47a8d4b8d
7155726https://github.com/MetaMask/metamask-module-template/commit/7155726c6134d62c468e7b09046430b47a8d4b8d
feat: add a permission audit script for generating LavaMoat configs (#…https://github.com/MetaMask/metamask-module-template/commit/80f5bd393b062ea0f8b90cf7e7a3820efbc957a9
#…https://github.com/MetaMask/metamask-module-template/pull/344
80f5bd3https://github.com/MetaMask/metamask-module-template/commit/80f5bd393b062ea0f8b90cf7e7a3820efbc957a9
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65419
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65419
permissionIssues and PRs related to the Permission Model.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22permission%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.