Message ID | 20240925210134.530989-1-luca.boccassi@gmail.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | [v3,1/2] ipe: return -ESTALE instead of -EINVAL on update when new policy has a lower version | expand |
diff --git a/security/ipe/policy.c b/security/ipe/policy.c index bf5aa97911e1..3a0069c6d5af 100644 --- a/security/ipe/policy.c +++ b/security/ipe/policy.c @@ -107,7 +107,7 @@ int ipe_update_policy(struct inode *root, const char *text, size_t textlen, } if (ver_to_u64(old) > ver_to_u64(new)) { - rc = -EINVAL; + rc = -ESTALE; goto err; }