History

iversion: Rename make inode_cmp_iversion{+raw} to inode_eq_iversion{+raw}

The function inode_cmp_iversion{+raw} is counter-intuitive, because it returns true when the counters are different and false when these are equal. Rename it to inode_eq_iversion{+raw}, which will returns true when the counters are equal and false otherwise.

Goffredo Baroncelli committed 8 years ago

Commit c472c071 parent 255442c11 files · +25 −25Browse files

Showing the changes to security (1 of 11 files). Show all

Unified · Split

security/integrity/ima/ima_main.c+1−1
@@ -135,7 +135,7 @@ static void ima_check_last_writer(struct integrity_iint_cache *iint, · 134 unmodified lines
135135 update = test_and_clear_bit(IMA_UPDATE_XATTR,
136136 &iint->atomic_flags);
137137 if (!IS_I_VERSION(inode) ||
138− inode_cmp_iversion(inode, iint->version) ||
138+ !inode_eq_iversion(inode, iint->version) ||
139139 (iint->flags & IMA_NEW_FILE)) {
140140 iint->flags &= ~(IMA_DONE_MASK | IMA_NEW_FILE);
141141 iint->measured_pcrs = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t