[GH-ISSUE #3584] Disable the access to /run/firejail/mnt/devlog #2247

Closed
opened 2026-05-05 08:56:21 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @sfc-gh-jdu on GitHub (Aug 12, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3584

Hello, can we add an option to disable the access to syslog, i.e., /run/firejail/mnt/devlog? It seems now the firejail creates a mount (dev/log) agains devlog.

(in src/firejail/fs_dev.c)

        // create DEVLOG_FILE
	int have_devlog = 0;
	struct stat s;
	if (stat("/dev/log", &s) == 0) {
		have_devlog = 1;
		FILE *fp = fopen(RUN_DEVLOG_FILE, "w");
		if (!fp)
			have_devlog = 0;
		else {
			fprintf(fp, "\n");
			fclose(fp);
			if (mount("/dev/log", RUN_DEVLOG_FILE, NULL, MS_BIND|MS_REC, NULL) < 0)
				errExit("mounting /dev/log");
		}
	}

Thanks!

Originally created by @sfc-gh-jdu on GitHub (Aug 12, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3584 Hello, can we add an option to disable the access to syslog, i.e., /run/firejail/mnt/devlog? It seems now the firejail creates a mount (dev/log) agains devlog. (in src/firejail/fs_dev.c) ``` // create DEVLOG_FILE int have_devlog = 0; struct stat s; if (stat("/dev/log", &s) == 0) { have_devlog = 1; FILE *fp = fopen(RUN_DEVLOG_FILE, "w"); if (!fp) have_devlog = 0; else { fprintf(fp, "\n"); fclose(fp); if (mount("/dev/log", RUN_DEVLOG_FILE, NULL, MS_BIND|MS_REC, NULL) < 0) errExit("mounting /dev/log"); } } ``` Thanks!
gitea-mirror 2026-05-05 08:56:21 -06:00
Author
Owner

@rusty-snake commented on GitHub (Aug 13, 2020):

What about blacklist /dev/log?

<!-- gh-comment-id:673294828 --> @rusty-snake commented on GitHub (Aug 13, 2020): What about `blacklist /dev/log`?
Author
Owner

@smitsohu commented on GitHub (Aug 28, 2020):

Let's blacklist it always.

<!-- gh-comment-id:682584805 --> @smitsohu commented on GitHub (Aug 28, 2020): Let's blacklist it always.
Author
Owner

@smitsohu commented on GitHub (Aug 28, 2020):

Let's blacklist it always.

I meant the temporary location /run/firejail/mnt/devlog that was indicated in the issue title.

If you don't need /dev/log, you can just blacklist it as usual, as @rusty-snake said.

<!-- gh-comment-id:682600174 --> @smitsohu commented on GitHub (Aug 28, 2020): > Let's blacklist it always. I meant the temporary location /run/firejail/mnt/devlog that was indicated in the issue title. If you don't need /dev/log, you can just blacklist it as usual, as @rusty-snake said.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2247
No description provided.