aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/restrict_users.c
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-03-07 03:26:25 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-03-07 03:29:31 -0300
commit1f5f84f9596ba7d26c2f2e35dad7728e12afaec9 (patch)
tree96f62fb8ccf76ae7e212d9a5268ef707c5ca0a6d /src/firejail/restrict_users.c
parenttesting (diff)
downloadfirejail-1f5f84f9596ba7d26c2f2e35dad7728e12afaec9.tar.gz
firejail-1f5f84f9596ba7d26c2f2e35dad7728e12afaec9.tar.zst
firejail-1f5f84f9596ba7d26c2f2e35dad7728e12afaec9.zip
Run make codespell
Environment: codespell 2.2.2-3 on Artix Linux.
Diffstat (limited to 'src/firejail/restrict_users.c')
-rw-r--r--src/firejail/restrict_users.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/restrict_users.c b/src/firejail/restrict_users.c
index b95c9a96b..c5c66549d 100644
--- a/src/firejail/restrict_users.c
+++ b/src/firejail/restrict_users.c
@@ -234,7 +234,7 @@ static void sanitize_passwd(void) {
234 SET_PERMS_STREAM(fpout, 0, 0, 0644); 234 SET_PERMS_STREAM(fpout, 0, 0, 0644);
235 fclose(fpout); 235 fclose(fpout);
236 236
237 // mount-bind tne new password file 237 // mount-bind the new password file
238 if (mount(RUN_PASSWD_FILE, "/etc/passwd", "none", MS_BIND, "mode=400,gid=0") < 0) 238 if (mount(RUN_PASSWD_FILE, "/etc/passwd", "none", MS_BIND, "mode=400,gid=0") < 0)
239 errExit("mount"); 239 errExit("mount");
240 240
@@ -369,7 +369,7 @@ static void sanitize_group(void) {
369 SET_PERMS_STREAM(fpout, 0, 0, 0644); 369 SET_PERMS_STREAM(fpout, 0, 0, 0644);
370 fclose(fpout); 370 fclose(fpout);
371 371
372 // mount-bind tne new group file 372 // mount-bind the new group file
373 if (mount(RUN_GROUP_FILE, "/etc/group", "none", MS_BIND, "mode=400,gid=0") < 0) 373 if (mount(RUN_GROUP_FILE, "/etc/group", "none", MS_BIND, "mode=400,gid=0") < 0)
374 errExit("mount"); 374 errExit("mount");
375 375