Lines Matching defs:seals
139 return &SHMEM_I(file_inode(file))->seals;
143 return &HUGETLBFS_I(file_inode(file))->seals;
155 static int memfd_add_seals(struct file *file, unsigned int seals)
173 * following seals are defined:
174 * SEAL_SEAL: Prevent further seals from being set on this file
180 * must prevent seals from being removed. Therefore, sealing a file
181 * only adds a given set of seals to the file, it never touches
182 * existing seals. Furthermore, the "setting seals"-operation can be
188 * importantly, seals are never written to disk. Therefore, there's
194 if (seals & ~(unsigned int)F_ALL_SEALS)
210 if ((seals & F_SEAL_WRITE) && !(*file_seals & F_SEAL_WRITE)) {
222 *file_seals |= seals;
232 unsigned int *seals = memfd_file_seals_ptr(file);
234 return seals ? *seals : -EINVAL;