2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-04 00:05:26 +00:00

Fix antique style declarations in lsm.[ch]

Otherwise we eventually get compiler warnings, ending up with the
build abort.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Takashi Iwai
2015-06-01 17:07:00 +03:00
committed by Pavel Emelyanov
parent 9b92975e57
commit 9fc22be938
2 changed files with 5 additions and 5 deletions

View File

@@ -7,12 +7,12 @@
/* /*
* Get the Lsmtype for the current host. * Get the Lsmtype for the current host.
*/ */
extern Lsmtype host_lsm_type(); extern Lsmtype host_lsm_type(void);
/* /*
* Initilize the Lsmtype for the current host * Initilize the Lsmtype for the current host
*/ */
extern void kerndat_lsm(); extern void kerndat_lsm(void);
/* /*
* Read the LSM profile for the pstree item * Read the LSM profile for the pstree item
@@ -23,7 +23,7 @@ extern int collect_lsm_profile(pid_t, CredsEntry *);
* Validate that the LSM profiles can be correctly applied (must happen after * Validate that the LSM profiles can be correctly applied (must happen after
* pstree is set up). * pstree is set up).
*/ */
extern int validate_lsm(); int validate_lsm(CredsEntry *ce);
/* /*
* Render the profile name in the way that the LSM wants it written to * Render the profile name in the way that the LSM wants it written to

4
lsm.c
View File

@@ -102,7 +102,7 @@ static int selinux_get_label(pid_t pid, char **output)
} }
#endif #endif
void kerndat_lsm() void kerndat_lsm(void)
{ {
if (access("/sys/kernel/security/apparmor", F_OK) == 0) { if (access("/sys/kernel/security/apparmor", F_OK) == 0) {
get_label = apparmor_get_label; get_label = apparmor_get_label;
@@ -130,7 +130,7 @@ void kerndat_lsm()
name = "none"; name = "none";
} }
Lsmtype host_lsm_type() Lsmtype host_lsm_type(void)
{ {
return lsmtype; return lsmtype;
} }