aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/firejail/ls.c2
-rw-r--r--src/firejail/network.c2
-rw-r--r--src/firejail/restrict_users.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/firejail/ls.c b/src/firejail/ls.c
index b2e4b1947..f2ab1c188 100644
--- a/src/firejail/ls.c
+++ b/src/firejail/ls.c
@@ -140,7 +140,7 @@ static void print_file_or_dir(const char *path, const char *fname) {
140 } 140 }
141 } 141 }
142 142
143 // print grup name, 8 chars maximum 143 // print group name, 8 chars maximum
144 len = strlen(groupname); 144 len = strlen(groupname);
145 if (len > 8) { 145 if (len > 8) {
146 groupname[8] = '\0'; 146 groupname[8] = '\0';
diff --git a/src/firejail/network.c b/src/firejail/network.c
index 19c4b5244..0d2d53fca 100644
--- a/src/firejail/network.c
+++ b/src/firejail/network.c
@@ -113,7 +113,7 @@ int net_get_mtu(const char *ifname) {
113// close(s); 113// close(s);
114//} 114//}
115 115
116// return -1 if the interface was not found; if the interface was found retrn 0 and fill in IP address and mask 116// return -1 if the interface was not found; if the interface was found return 0 and fill in IP address and mask
117int net_get_if_addr(const char *bridge, uint32_t *ip, uint32_t *mask, uint8_t mac[6], int *mtu) { 117int net_get_if_addr(const char *bridge, uint32_t *ip, uint32_t *mask, uint8_t mac[6], int *mtu) {
118 assert(bridge); 118 assert(bridge);
119 assert(ip); 119 assert(ip);
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