• R/O
  • SSH
  • HTTPS

akari: Commit


Commit MetaInfo

Revision595 (tree)
Time2018-08-27 19:15:46
Authorkumaneko

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/akari/lsm-4.12.c (revision 594)
+++ trunk/akari/lsm-4.12.c (revision 595)
@@ -228,10 +228,23 @@
228228 return ccs_start_execve(bprm, &security->ee);
229229 }
230230
231+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
231232 /**
232233 * ccs_file_open - Check permission for open().
233234 *
234235 * @f: Pointer to "struct file".
236+ *
237+ * Returns 0 on success, negative value otherwise.
238+ */
239+static int ccs_file_open(struct file *f)
240+{
241+ return ccs_open_permission(f);
242+}
243+#else
244+/**
245+ * ccs_file_open - Check permission for open().
246+ *
247+ * @f: Pointer to "struct file".
235248 * @cred: Pointer to "struct cred".
236249 *
237250 * Returns 0 on success, negative value otherwise.
@@ -240,6 +253,7 @@
240253 {
241254 return ccs_open_permission(f);
242255 }
256+#endif
243257
244258 #ifdef CONFIG_SECURITY_PATH
245259
Show on old repository browser