mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-09-18 09:55:21 +02:00
Remove local ioctl definitions and use <linux/fs.h>
Use standard flags, supported by ext2/3/4 Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
This commit is contained in:
@@ -529,7 +529,7 @@ static int calc_evm_hash(const char *file, unsigned char *hash)
|
||||
log_err("Unable to open %s\n", file);
|
||||
return -1;
|
||||
}
|
||||
if (ioctl(fd, EXT34_IOC_GETVERSION, &generation)) {
|
||||
if (ioctl(fd, FS_IOC_GETVERSION, &generation)) {
|
||||
log_err("ioctl() failed\n");
|
||||
return -1;
|
||||
}
|
||||
@@ -1082,7 +1082,7 @@ static int calc_evm_hmac(const char *file, const char *keyfile, unsigned char *h
|
||||
log_err("Unable to open %s\n", file);
|
||||
goto out;
|
||||
}
|
||||
if (ioctl(fd, EXT34_IOC_GETVERSION, &generation)) {
|
||||
if (ioctl(fd, FS_IOC_GETVERSION, &generation)) {
|
||||
log_err("ioctl() failed\n");
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user