-
Notifications
You must be signed in to change notification settings - Fork 104
CFE-4582: Added fsattrs bodies for the immutable bit #3037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
1265e21
to
991e019
Compare
3bb602e
to
1d08559
Compare
immutable => "$(CF_BOOL)"; # The i attribute supported by chattr | ||
} | ||
|
||
body fsattrs is_immutable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like this should rather be
body fsattrs is_immutable
{
inherit_from => immutable("true");
}
To avoid a bunch of repetition of examples, etc here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, I had considered that but instead preferred for the others to be more stand alone.
immutable => "true"; # The i attribute supported by chattr | ||
} | ||
|
||
body fsattrs is_not_immutable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe
body fsattrs is_not_immutable
{
inherit_from => immutable("false");
}
This introduces a new fsattrs immutable body for use with the files promise type. When applied, it ensures that the promised file has the immutable (i) attribute set. The agent will transparently manage the attribute, removing it before any necessary file modifications and restoring it afterwards. To simplify usage, is_immutable and is_not_immutable bodies were introduced as direct aliases for the parameterized immutable with "true" and "false" arguments, respectively. Ticket: CFE-4582 Changelog: Title
4ff774c
to
020c4d2
Compare
This introduces a new fsattrs immutable body for use with the files promise
type. When applied, it ensures that the promised file has the immutable (i)
attribute set. The agent will transparently manage the attribute, removing it
before any necessary file modifications and restoring it afterwards.
Ticket: CFE-4582
Changelog: Title