Skip to content

Commit 9a4a21c

Browse files
committed
feat: update version to 3.3.0 and add umask configuration in docs
1 parent 7a0bfb2 commit 9a4a21c

File tree

10 files changed

+23
-14
lines changed

10 files changed

+23
-14
lines changed

.cargo/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ RAR_AUTHENTICATION = "perform"
6363
RAR_EXEC_INFO_DISPLAY = "hide"
6464
RAR_USER_CONSIDERED = "user"
6565
RAR_BOUNDING = "strict"
66+
RAR_UMASK = "0022"
6667
RAR_MAX_LOCKFILE_RETRIES = "10"
6768
RAR_LOCKFILE_RETRY_INTERVAL = "1"
6869
RAR_TIMEOUT_STORAGE = "/var/run/rar/ts"

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["xtask", "rar-common"]
33

44
[package]
55
name = "rootasrole"
6-
version = "3.2.4"
6+
version = "3.3.0"
77
rust-version = "1.83.0"
88
authors = ["Eddie Billoir <lechatp@outlook.fr>"]
99
edition = "2021"
@@ -68,7 +68,7 @@ unexpected_cfgs = { level = "allow", check-cfg = ['cfg(tarpaulin_include)'] }
6868
toml = { version = "0.8", default-features = false, features = ["parse", "display", "preserve_order"] }
6969

7070
[dependencies]
71-
rar-common = { path = "rar-common", version = "3.2.4", package = "rootasrole-core" }
71+
rar-common = { path = "rar-common", version = "3.3.0", package = "rootasrole-core" }
7272
log = { version = "0.4", default-features = false, features = ["std"] }
7373
libc = { version = "0.2", default-features = false, features = ["std"]}
7474
strum = { version = "0.26", default-features = false, features = ["derive"] }

book/src/chsr/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,12 @@ chsr role [role_name] options [option] [operation]
7070
chsr role [role_name] task [task_name] options [option] [operation]
7171
<b>path</b> Manage path settings (set, whitelist, blacklist).
7272
<b>env</b> Manage environment variable settings (set, whitelist, blacklist, checklist).
73-
<b>root</b> [policy] Defines when the root user (uid == 0) gets his privileges by default. (privileged, user, inherit)
74-
<b>bounding</b> [policy] Defines when dropped capabilities are permanently removed in the instantiated process. (strict, ignore, inherit)
73+
<b>root</b> [policy] Defines when the root user (uid == 0) gets his privileges by default. (del, privileged, user)
74+
<b>bounding</b> [policy] Defines when dropped capabilities are permanently removed in the instantiated process. (del, strict, ignore)
7575
<b>timeout</b> Manage timeout settings (set, unset).
76+
<b>umask</b> [umask|del] Set the umask execution environment (in octal format, e.g., 022, or del for removing).
77+
<b>authentication</b> [policy] Defines if user needs to authenticate (del, skip, perform).
78+
<b>execinfo</b> [policy] Defines if user can see execution settings (del, show, hide).
7679

7780

7881
<u><b>Path options:</b></u>

book/src/chsr/file-config.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ The following example shows a RootAsRole config without plugins when almost ever
6363
"type": "ppid", // Type of timeout: tty, ppid, uid
6464
"duration": "15:30:30", // Duration of the timeout in HH:MM:SS format
6565
"max_usage": 1 // Maximum usage before timeout expires
66-
}
66+
},
67+
"umask": "022", // umask value for the executed command
68+
"execinfo": "show", // Allow users to see execution context: show, hide
69+
"authentication": "perform" // Authentication: perform, skip
6770
},
6871
"roles": [ // Role list
6972
{

rar-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rootasrole-core"
3-
version = "3.2.4"
3+
version = "3.3.0"
44
edition = "2021"
55
description = "This core crate for the RootAsRole project."
66
license = "LGPL-3.0-or-later"

resources/man/en_US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% RootAsRole(8) RootAsRole 3.2.4 | System Manager's Manual
1+
% RootAsRole(8) RootAsRole 3.3.0 | System Manager's Manual
22
% Eddie Billoir <lechatp@outlook.fr>
33
% August 2025
44

resources/man/fr_FR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% RootAsRole(8) RootAsRole 3.2.4 | Manuel de l'administrateur système
1+
% RootAsRole(8) RootAsRole 3.3.0 | Manuel de l'administrateur système
22
% Eddie Billoir <lechatp@outlook.fr>
33
% Août 2025
44

resources/rootasrole.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.2.0",
2+
"version": "3.3.0",
33
"storage": {
44
"method": "json",
55
"settings": {
@@ -63,7 +63,9 @@
6363
},
6464
"authentication": "perform",
6565
"root": "user",
66-
"bounding": "strict"
66+
"bounding": "strict",
67+
"umask": "022",
68+
"execinfo": "hide"
6769
},
6870
"roles": [
6971
{

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xtask"
33
# The project version is managed on json file in resources/rootasrole.json
4-
version = "3.2.4"
4+
version = "3.3.0"
55
edition = "2021"
66
publish = false
77

0 commit comments

Comments
 (0)