Skip to content

Commit

Permalink
update readme, bump: libc to 0.2.140, paste to 1.0.12, serde_json to …
Browse files Browse the repository at this point in the history
…1.0.94, serde to 1.0.157
  • Loading branch information
xenago committed Mar 19, 2023
1 parent 41bdfa7 commit 469a9bc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 29 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ codegen-units = 1 # use a single thread

[dependencies]
lazy_static = "1.4.0"
libc = "0.2.137"
libc = "0.2.140"
libnss = "0.4"
paste = "1.0.9"
serde_json = "1.0.87"
serde = { version = "1.0.147", features = ["derive"] }
paste = "1.0.12"
serde_json = "1.0.94"
serde = { version = "1.0.157", features = ["derive"] }
shlex = "1.1.0"

[lib]
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,11 @@ This NSS plugin runs commands defined in the file `/etc/libnss_shim/config.json`
default. Ensure that this file, the commands defined inside it, and any other related resources remain inaccessible to
other users, or the system may be vulnerable to privilege escalation attacks.

Commands are not passed through a shell for execution. Although it is certainly possible to run software like `bash`
with `libnss_shim`, using a shell is not recommended as this comes at the risk of command injection. If a shell is used
despite this, then codes used to pass data (like `<$name>`) are recommended to be set using environment variables rather
than arguments.
It is recommended to pass data (like `<$name>`) using environment variables rather than arguments, except for
testing purposes. Environment variables are generally private, whereas commands/launch args are not.

Commands are not passed through a shell for execution. Although it is possible to run software like `bash`
with `libnss_shim`, using a shell is not recommended as this comes with additional risks such as command injection.

## Useful resources

Expand Down
9 changes: 5 additions & 4 deletions changelog/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- Update README (clarify usage of codes
- Update libc crate to 0.2.137
- Update serde_json crate to 1.0.87
- Update serde crate to 1.0.147
- Update README (clarify usage of codes)
- Update libc crate to 0.2.140
- Update paste crate to 1.0.12
- Update serde_json crate to 1.0.94
- Update serde crate to 1.0.157

0 comments on commit 469a9bc

Please sign in to comment.