Commit de4c44a
committed
ima: add support to require IMA sigv3 signatures
Defining a policy rule with the "appraise_type=imasig" option allows
either v2 or v3 signatures. Defining an IMA appraise rule with the
"appraise_type=sigv3" option requires a file sigv3 signature.
Define a new appraise type: IMA_SIGV3_REQUIRED
Example: appraise func=BPRM_CHECK appraise_type=sigv3
Tested-by: Stefan Berger <stefanb@linux.ibm.com>
Acked-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>1 parent 64c658f commit de4c44a
4 files changed
Lines changed: 24 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 56 | + | |
60 | 57 | | |
61 | 58 | | |
62 | 59 | | |
| |||
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1298 | 1298 | | |
1299 | 1299 | | |
1300 | 1300 | | |
1301 | | - | |
| 1301 | + | |
| 1302 | + | |
1302 | 1303 | | |
1303 | 1304 | | |
1304 | 1305 | | |
| |||
1833 | 1834 | | |
1834 | 1835 | | |
1835 | 1836 | | |
1836 | | - | |
1837 | | - | |
1838 | | - | |
| 1837 | + | |
1839 | 1838 | | |
1840 | 1839 | | |
1841 | 1840 | | |
| |||
1849 | 1848 | | |
1850 | 1849 | | |
1851 | 1850 | | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
| 1851 | + | |
| 1852 | + | |
| 1853 | + | |
1857 | 1854 | | |
1858 | 1855 | | |
1859 | | - | |
| 1856 | + | |
| 1857 | + | |
1860 | 1858 | | |
1861 | 1859 | | |
1862 | 1860 | | |
| |||
1941 | 1939 | | |
1942 | 1940 | | |
1943 | 1941 | | |
1944 | | - | |
| 1942 | + | |
1945 | 1943 | | |
1946 | 1944 | | |
1947 | 1945 | | |
| |||
2309 | 2307 | | |
2310 | 2308 | | |
2311 | 2309 | | |
2312 | | - | |
| 2310 | + | |
2313 | 2311 | | |
2314 | 2312 | | |
2315 | 2313 | | |
| |||
0 commit comments