diff options
author | netblue30 <netblue30@protonmail.com> | 2023-03-05 09:57:04 -0500 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2023-03-05 09:57:04 -0500 |
commit | d78fc96ee0585fbf0fc467eebc109716eee2e1d7 (patch) | |
tree | 65a56cdde3a8e803dde6e5c4d5dfe26d617579c4 /src | |
parent | cleanup appimage (diff) | |
download | firejail-d78fc96ee0585fbf0fc467eebc109716eee2e1d7.tar.gz firejail-d78fc96ee0585fbf0fc467eebc109716eee2e1d7.tar.zst firejail-d78fc96ee0585fbf0fc467eebc109716eee2e1d7.zip |
codespell github action
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/arp.c | 2 | ||||
-rw-r--r-- | src/firejail/ls.c | 2 | ||||
-rw-r--r-- | src/firejail/usage.c | 4 | ||||
-rw-r--r-- | src/firejail/util.c | 2 | ||||
-rw-r--r-- | src/fnet/main.c | 2 | ||||
-rw-r--r-- | src/lib/firejail_user.c | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/src/firejail/arp.c b/src/firejail/arp.c index bfb522d38..d4288b29e 100644 --- a/src/firejail/arp.c +++ b/src/firejail/arp.c | |||
@@ -299,7 +299,7 @@ static uint32_t arp_random(const char *dev, Bridge *br) { | |||
299 | return 0; | 299 | return 0; |
300 | } | 300 | } |
301 | 301 | ||
302 | // go sequentially trough all IP addresses and assign the first one not in use | 302 | // go sequentially through all IP addresses and assign the first one not in use |
303 | static uint32_t arp_sequential(const char *dev, Bridge *br) { | 303 | static uint32_t arp_sequential(const char *dev, Bridge *br) { |
304 | assert(dev); | 304 | assert(dev); |
305 | assert(br); | 305 | assert(br); |
diff --git a/src/firejail/ls.c b/src/firejail/ls.c index ea85fabfd..b2e4b1947 100644 --- a/src/firejail/ls.c +++ b/src/firejail/ls.c | |||
@@ -381,7 +381,7 @@ void sandboxfs(int op, pid_t pid, const char *path1, const char *path2) { | |||
381 | errExit("ftruncate"); | 381 | errExit("ftruncate"); |
382 | 382 | ||
383 | if (copy_file_by_fd(src, dest) != 0) | 383 | if (copy_file_by_fd(src, dest) != 0) |
384 | fwarning("an error occured during copying\n"); | 384 | fwarning("an error occurred during copying\n"); |
385 | close(src); | 385 | close(src); |
386 | close(dest); | 386 | close(dest); |
387 | } | 387 | } |
diff --git a/src/firejail/usage.c b/src/firejail/usage.c index 2e10fb959..965d09992 100644 --- a/src/firejail/usage.c +++ b/src/firejail/usage.c | |||
@@ -200,8 +200,8 @@ static char *usage_str = | |||
200 | " --private=directory - use directory as user home.\n" | 200 | " --private=directory - use directory as user home.\n" |
201 | " --private-cache - temporary ~/.cache directory.\n" | 201 | " --private-cache - temporary ~/.cache directory.\n" |
202 | " --private-home=file,directory - build a new user home in a temporary\n" | 202 | " --private-home=file,directory - build a new user home in a temporary\n" |
203 | "\tfilesystem, and copy the files and directories in the list in\n" | 203 | "\tfilesystem, and copy the files and directories in the list in the\n" |
204 | "\tthe new home.\n" | 204 | "\tnew home.\n" |
205 | " --private-bin=file,file - build a new /bin in a temporary filesystem,\n" | 205 | " --private-bin=file,file - build a new /bin in a temporary filesystem,\n" |
206 | "\tand copy the programs in the list.\n" | 206 | "\tand copy the programs in the list.\n" |
207 | " --private-dev - create a new /dev directory with a small number of\n" | 207 | " --private-dev - create a new /dev directory with a small number of\n" |
diff --git a/src/firejail/util.c b/src/firejail/util.c index bafcd69ec..cda99e432 100644 --- a/src/firejail/util.c +++ b/src/firejail/util.c | |||
@@ -1323,7 +1323,7 @@ void close_all(int *keep_list, size_t sz) { | |||
1323 | if (fd == dirfd(dir)) | 1323 | if (fd == dirfd(dir)) |
1324 | continue; // just postponed | 1324 | continue; // just postponed |
1325 | 1325 | ||
1326 | // dont't close file descriptors in keep list | 1326 | // don't close file descriptors in keep list |
1327 | int keep = 0; | 1327 | int keep = 0; |
1328 | if (keep_list) { | 1328 | if (keep_list) { |
1329 | size_t i; | 1329 | size_t i; |
diff --git a/src/fnet/main.c b/src/fnet/main.c index 96c4f1478..fc36ae977 100644 --- a/src/fnet/main.c +++ b/src/fnet/main.c | |||
@@ -87,7 +87,7 @@ printf("\n"); | |||
87 | else if (argc == 7 && strcmp(argv[1], "create") == 0 && strcmp(argv[2], "veth") == 0) { | 87 | else if (argc == 7 && strcmp(argv[1], "create") == 0 && strcmp(argv[2], "veth") == 0) { |
88 | // create veth pair and move one end in the the namespace | 88 | // create veth pair and move one end in the the namespace |
89 | net_create_veth(argv[3], argv[4], atoi(argv[6])); | 89 | net_create_veth(argv[3], argv[4], atoi(argv[6])); |
90 | // connect the ohter veth end to the bridge ... | 90 | // connect the other veth end to the bridge ... |
91 | net_bridge_add_interface(argv[5], argv[3]); | 91 | net_bridge_add_interface(argv[5], argv[3]); |
92 | // ... and bring it up | 92 | // ... and bring it up |
93 | net_if_up(argv[3]); | 93 | net_if_up(argv[3]); |
diff --git a/src/lib/firejail_user.c b/src/lib/firejail_user.c index dc6361422..a924f26cf 100644 --- a/src/lib/firejail_user.c +++ b/src/lib/firejail_user.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | // | 21 | // |
22 | // Firejail access database inplementation | 22 | // Firejail access database implementation |
23 | // | 23 | // |
24 | // The database is a simple list of users allowed to run firejail SUID executable | 24 | // The database is a simple list of users allowed to run firejail SUID executable |
25 | // It is usually stored in /etc/firejail/firejail.users | 25 | // It is usually stored in /etc/firejail/firejail.users |