|
@@ -105,20 +105,13 @@ err_out:
|
|
* mask: contains the permission mask
|
|
* mask: contains the permission mask
|
|
* fsmagic: hex value
|
|
* fsmagic: hex value
|
|
*
|
|
*
|
|
- * Must be called with iint->mutex held.
|
|
|
|
- *
|
|
|
|
- * Return 0 to measure. Return 1 if already measured.
|
|
|
|
- * For matching a DONT_MEASURE policy, no policy, or other
|
|
|
|
- * error, return an error code.
|
|
|
|
|
|
+ * Return 0 to measure. For matching a DONT_MEASURE policy, no policy,
|
|
|
|
+ * or other error, return an error code.
|
|
*/
|
|
*/
|
|
-int ima_must_measure(struct ima_iint_cache *iint, struct inode *inode,
|
|
|
|
- int mask, int function)
|
|
|
|
|
|
+int ima_must_measure(struct inode *inode, int mask, int function)
|
|
{
|
|
{
|
|
int must_measure;
|
|
int must_measure;
|
|
|
|
|
|
- if (iint && iint->flags & IMA_MEASURED)
|
|
|
|
- return 1;
|
|
|
|
-
|
|
|
|
must_measure = ima_match_policy(inode, function, mask);
|
|
must_measure = ima_match_policy(inode, function, mask);
|
|
return must_measure ? 0 : -EACCES;
|
|
return must_measure ? 0 : -EACCES;
|
|
}
|
|
}
|