Skip to content

Commit c331e51

Browse files
committed
stress-seal: cater for kernels that don't support F_SEAL_EXEC
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
1 parent 2b89ae7 commit c331e51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stress-seal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int stress_seal(stress_args_t *args)
213213
* Now write seal the file, no more writes allowed
214214
*/
215215
if (UNLIKELY(fcntl(fd, F_ADD_SEALS, F_SEAL_EXEC) < 0)) {
216-
if (errno == EBUSY)
216+
if ((errno == EBUSY) || (errno == EINVAL))
217217
goto next;
218218
pr_fail("%s: fcntl F_ADD_SEALS F_SEAL_EXEC failed, errno=%d (%s)\n",
219219
args->name, errno, strerror(errno));

0 commit comments

Comments
 (0)