* [PATCH v1] landlock: Update formatting
@ 2026-07-08 11:06 Mickaël Salaün
2026-07-08 15:30 ` Günther Noack
0 siblings, 1 reply; 2+ messages in thread
From: Mickaël Salaün @ 2026-07-08 11:06 UTC (permalink / raw)
To: Günther Noack
Cc: Mickaël Salaün, linux-security-module, Bart Van Assche,
Miguel Ojeda
Following commit 99df2a8eba34 ("clang-format: fix formatting of guard()
and scoped_guard() statements"), update scoped_guard() formatting.
Also, see the related fix [1].
Cc: Günther Noack <gnoack@google.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Link: https://lore.kernel.org/r/20260708105713.2073335-1-mic@digikod.net [1]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
---
security/landlock/task.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/security/landlock/task.c b/security/landlock/task.c
index 7ddf211f75c3..360d226d0f51 100644
--- a/security/landlock/task.c
+++ b/security/landlock/task.c
@@ -95,8 +95,7 @@ static int hook_ptrace_access_check(struct task_struct *const child,
if (!parent_subject)
return 0;
- scoped_guard(rcu)
- {
+ scoped_guard(rcu) {
const struct landlock_ruleset *const child_dom =
landlock_get_task_domain(child);
err = domain_ptrace(parent_subject->domain, child_dom);
@@ -370,8 +369,7 @@ static int hook_task_kill(struct task_struct *const p,
if (!subject)
return 0;
- scoped_guard(rcu)
- {
+ scoped_guard(rcu) {
is_scoped = domain_is_scoped(subject->domain,
landlock_get_task_domain(p),
signal_scope.scope);
@@ -422,8 +420,7 @@ static int hook_file_send_sigiotask(struct task_struct *tsk,
if (task_tgid(tsk) == landlock_file(fown->file)->fown_tg)
return 0;
- scoped_guard(rcu)
- {
+ scoped_guard(rcu) {
is_scoped = domain_is_scoped(subject->domain,
landlock_get_task_domain(tsk),
signal_scope.scope);
--
2.54.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v1] landlock: Update formatting
2026-07-08 11:06 [PATCH v1] landlock: Update formatting Mickaël Salaün
@ 2026-07-08 15:30 ` Günther Noack
0 siblings, 0 replies; 2+ messages in thread
From: Günther Noack @ 2026-07-08 15:30 UTC (permalink / raw)
To: Mickaël Salaün
Cc: linux-security-module, Bart Van Assche, Miguel Ojeda
On Wed, Jul 08, 2026 at 01:06:33PM +0200, Mickaël Salaün wrote:
> Following commit 99df2a8eba34 ("clang-format: fix formatting of guard()
> and scoped_guard() statements"), update scoped_guard() formatting.
> Also, see the related fix [1].
>
> Cc: Günther Noack <gnoack@google.com>
> Cc: Miguel Ojeda <ojeda@kernel.org>
> Link: https://lore.kernel.org/r/20260708105713.2073335-1-mic@digikod.net [1]
> Signed-off-by: Mickaël Salaün <mic@digikod.net>
> ---
> security/landlock/task.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/security/landlock/task.c b/security/landlock/task.c
> index 7ddf211f75c3..360d226d0f51 100644
> --- a/security/landlock/task.c
> +++ b/security/landlock/task.c
> @@ -95,8 +95,7 @@ static int hook_ptrace_access_check(struct task_struct *const child,
> if (!parent_subject)
> return 0;
>
> - scoped_guard(rcu)
> - {
> + scoped_guard(rcu) {
> const struct landlock_ruleset *const child_dom =
> landlock_get_task_domain(child);
> err = domain_ptrace(parent_subject->domain, child_dom);
> @@ -370,8 +369,7 @@ static int hook_task_kill(struct task_struct *const p,
> if (!subject)
> return 0;
>
> - scoped_guard(rcu)
> - {
> + scoped_guard(rcu) {
> is_scoped = domain_is_scoped(subject->domain,
> landlock_get_task_domain(p),
> signal_scope.scope);
> @@ -422,8 +420,7 @@ static int hook_file_send_sigiotask(struct task_struct *tsk,
> if (task_tgid(tsk) == landlock_file(fown->file)->fown_tg)
> return 0;
>
> - scoped_guard(rcu)
> - {
> + scoped_guard(rcu) {
> is_scoped = domain_is_scoped(subject->domain,
> landlock_get_task_domain(tsk),
> signal_scope.scope);
> --
> 2.54.0
Reviewed-by: Günther Noack <gnoack@google.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-08 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08 11:06 [PATCH v1] landlock: Update formatting Mickaël Salaün
2026-07-08 15:30 ` Günther Noack
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.