Documented in 2 files:
Defined in 3 files as a function:
- fs/ubifs/file.c, line 1208 (as a function)
- security/apparmor/lsm.c, line 852 (as a function)
- security/smack/smack_lsm.c, line 3802 (as a function)
Referenced in 3 files:
Smatch caller information:
security/smack/smack_lsm.c smack_setprocattr() -> do_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 100 |
| PARAM_VALUE | 1 | inode | 1-ptr_max |
| PARAM_VALUE | 2 | attr | 0-4096 |
| BUF_SIZE | 1 | inode | 0-4096 |
| BUF_SIZE | 1 | inode | 0-4096 |
| DATA_SOURCE | 0 | c | r lsm_name_to_attr |
| DATA_SOURCE | 1 | inode | $1 |
| NOSPEC | 2 | attr | |
| NOSPEC | 2 | attr | |
| USER_DATA | 1 | *inode | s64min-s64max |
| USER_DATA | 2 | attr | 0-4096[c] |
| USER_PTR | 1 | inode |
security/smack/smack_lsm.c smack_setselfattr() -> do_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 100 |
| PARAM_VALUE | 1 | inode | 4096-ptr_max |
| BUF_SIZE | 1 | inode | 0-4064 |
| DATA_SOURCE | 0 | c | $0 |
| UNITS | 2 | attr | unit_byte |
| USER_PTR | 1 | inode |
fs/ubifs/file.c ubifs_setattr() -> do_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inode | 4096-ptr_max |
| PARAM_VALUE | 1 | inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 4096-ptr_max |
| PARAM_VALUE | 2 | attr->ia_mode | 0-64511 |
| BUF_SIZE | 0 | c | 1-s32max |
| BUF_SIZE | 0 | c | 1-s32max |
| BUF_SIZE | 2 | attr->ia_file | (-1),1-s32max |
| DATA_SOURCE | 2 | attr | $2 |
| NOSPEC | 2 | attr->ia_size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | inode->i_mode | 0-u16max |
| USER_DATA | 1 | inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 2 | attr->ia_mode | 0-64511 |
| USER_DATA | 2 | attr->ia_size | (-9223372036854775807)-(-4096),0-s64max |
| UNITS | 0 | c | unit_byte |
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
security/apparmor/lsm.c apparmor_setprocattr() -> do_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 100-105 |
| PARAM_VALUE | 1 | inode | 1-ptr_max |
| PARAM_VALUE | 2 | attr | 0-4096 |
| BUF_SIZE | 1 | inode | 0-4096 |
| BUF_SIZE | 1 | inode | 0-4096 |
| CAPPED_DATA | 2 | attr | 1 |
| CAPPED_DATA | 2 | attr | 1 |
| DATA_SOURCE | 0 | c | r lsm_name_to_attr |
| DATA_SOURCE | 1 | inode | $1 |
| DATA_SOURCE | 2 | attr | $2 |
| FUZZY_MAX | 2 | attr | 4096 |
| NOSPEC | 2 | attr | |
| NOSPEC | 2 | attr | |
| HARD_MAX | 2 | attr | 4096 |
| USER_DATA | 1 | *inode | s64min-s64max |
| USER_DATA | 2 | attr | 0-4096[c] |
| USER_PTR | 1 | inode |
security/apparmor/lsm.c apparmor_setselfattr() -> do_setattr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | c | 100-101 |
| BUF_SIZE | 1 | inode | 0-4064 |
| DATA_SOURCE | 0 | c | $0 |
| BIT_INFO | 0 | c | 0x64,0x65 |
| USER_DATA | 2 | attr | 0-u64max |
| UNITS | 2 | attr | unit_byte |
| USER_PTR | 1 | inode |