chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: issue error on oom we can do nothing about
[elogind.git]
/
src
/
core
/
ima-setup.c
diff --git
a/src/core/ima-setup.c
b/src/core/ima-setup.c
index 8e4fed17e7fc327d5356234468e810539fe1b30d..7721b3ecaf66fc56066550708b27236e581c87b9 100644
(file)
--- a/
src/core/ima-setup.c
+++ b/
src/core/ima-setup.c
@@
-22,10
+22,7
@@
***/
#include <unistd.h>
***/
#include <unistd.h>
-#include <stdio.h>
#include <errno.h>
#include <errno.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include "ima-setup.h"
#include <fcntl.h>
#include "ima-setup.h"
@@
-66,7
+63,7
@@
int ima_setup(void) {
return 0;
}
return 0;
}
- r = copy_bytes(policyfd, imafd,
-1
);
+ r = copy_bytes(policyfd, imafd,
(off_t) -1, false
);
if (r < 0)
log_error_errno(r, "Failed to load the IMA custom policy file "IMA_POLICY_PATH": %m");
else
if (r < 0)
log_error_errno(r, "Failed to load the IMA custom policy file "IMA_POLICY_PATH": %m");
else