Skip to content

Commit 469a9bc

Browse files
committed
update readme, bump: libc to 0.2.140, paste to 1.0.12, serde_json to 1.0.94, serde to 1.0.157
1 parent 41bdfa7 commit 469a9bc

File tree

4 files changed

+31
-29
lines changed

4 files changed

+31
-29
lines changed

Cargo.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ codegen-units = 1 # use a single thread
1616

1717
[dependencies]
1818
lazy_static = "1.4.0"
19-
libc = "0.2.137"
19+
libc = "0.2.140"
2020
libnss = "0.4"
21-
paste = "1.0.9"
22-
serde_json = "1.0.87"
23-
serde = { version = "1.0.147", features = ["derive"] }
21+
paste = "1.0.12"
22+
serde_json = "1.0.94"
23+
serde = { version = "1.0.157", features = ["derive"] }
2424
shlex = "1.1.0"
2525

2626
[lib]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,11 @@ This NSS plugin runs commands defined in the file `/etc/libnss_shim/config.json`
321321
default. Ensure that this file, the commands defined inside it, and any other related resources remain inaccessible to
322322
other users, or the system may be vulnerable to privilege escalation attacks.
323323
324-
Commands are not passed through a shell for execution. Although it is certainly possible to run software like `bash`
325-
with `libnss_shim`, using a shell is not recommended as this comes at the risk of command injection. If a shell is used
326-
despite this, then codes used to pass data (like `<$name>`) are recommended to be set using environment variables rather
327-
than arguments.
324+
It is recommended to pass data (like `<$name>`) using environment variables rather than arguments, except for
325+
testing purposes. Environment variables are generally private, whereas commands/launch args are not.
326+
327+
Commands are not passed through a shell for execution. Although it is possible to run software like `bash`
328+
with `libnss_shim`, using a shell is not recommended as this comes with additional risks such as command injection.
328329
329330
## Useful resources
330331

changelog/CHANGELOG.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
- Update README (clarify usage of codes
2-
- Update libc crate to 0.2.137
3-
- Update serde_json crate to 1.0.87
4-
- Update serde crate to 1.0.147
1+
- Update README (clarify usage of codes)
2+
- Update libc crate to 0.2.140
3+
- Update paste crate to 1.0.12
4+
- Update serde_json crate to 1.0.94
5+
- Update serde crate to 1.0.157

0 commit comments

Comments
 (0)