Skip to contentSkip to conversation

Changes to the LSM file-related hooks for 2.5.58

RFC Andi Kleen 1 participant 1 message Jan 15, 2003 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
Quoted 5 lines · Stephen D. Smalley

3) Add a security_file_alloc call to init_private_file and create a release_private_file function to encapsulate release of private file structures. These changes ensure that security structures for private files will be allocated and freed appropriately.

Adding release_private_file requires fixing all code that uses init_private_file (including possible third party code). Otherwise you have some subtle leak. It would better to rename init_private_file to some other name and add appropiate comments so that this can be catched easily at compile time.

-Andi