Skip to content

Commit

Permalink
landlock_common.h: Fix guarder + rename
Browse files Browse the repository at this point in the history
Without definition the guarder does not work. Fix it and while at it
append '__' to the name (common LTP approach to avoid theoretical clash
with random header guarder).

Fixes: 4e17e90 ("Add landlock01 test")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 26, 2024
1 parent eee3b2d commit 2d24a28
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testcases/kernel/syscalls/landlock/landlock_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
* Copyright (C) 2024 SUSE LLC Andrea Cervesato <andrea.cervesato@suse.com>
*/

#ifndef LANDLOCK_COMMON_H
#ifndef LANDLOCK_COMMON_H__
#define LANDLOCK_COMMON_H__

#include "tst_test.h"
#include "lapi/prctl.h"
Expand Down Expand Up @@ -71,4 +72,4 @@ static inline void apply_landlock_layer(
SAFE_CLOSE(ruleset_fd);
}

#endif
#endif /* LANDLOCK_COMMON_H__ */

0 comments on commit 2d24a28

Please sign in to comment.