Lines Matching refs:count
124 size_t count, loff_t *ppos) in sel_read_enforce() argument
131 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_enforce()
136 size_t count, loff_t *ppos) in sel_write_enforce() argument
144 if (count >= PAGE_SIZE) in sel_write_enforce()
151 page = memdup_user_nul(buf, count); in sel_write_enforce()
184 length = count; in sel_write_enforce()
200 size_t count, loff_t *ppos) in sel_read_handle_unknown() argument
210 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_handle_unknown()
231 size_t count, loff_t *ppos) in sel_read_handle_status() argument
237 return simple_read_from_buffer(buf, count, ppos, in sel_read_handle_status()
272 size_t count, loff_t *ppos) in sel_write_disable() argument
279 if (count >= PAGE_SIZE) in sel_write_disable()
286 page = memdup_user_nul(buf, count); in sel_write_disable()
294 length = count; in sel_write_disable()
312 size_t count, loff_t *ppos) in sel_read_policyvers() argument
318 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policyvers()
343 size_t count, loff_t *ppos) in sel_read_mls() argument
350 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_mls()
429 size_t count, loff_t *ppos) in sel_read_policy() argument
439 return simple_read_from_buffer(buf, count, ppos, plm->data, plm->len); in sel_read_policy()
571 size_t count, loff_t *ppos) in sel_write_load() argument
583 if (!count) in sel_write_load()
593 data = vmalloc(count); in sel_write_load()
598 if (copy_from_user(data, buf, count) != 0) { in sel_write_load()
603 length = security_load_policy(data, count, &load_state); in sel_write_load()
617 length = count; in sel_write_load()
668 size_t count, loff_t *ppos) in sel_read_checkreqprot() argument
675 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_checkreqprot()
679 size_t count, loff_t *ppos) in sel_write_checkreqprot() argument
691 if (count >= PAGE_SIZE) in sel_write_checkreqprot()
698 page = memdup_user_nul(buf, count); in sel_write_checkreqprot()
706 length = count; in sel_write_checkreqprot()
730 size_t count, loff_t *ppos) in sel_write_validatetrans() argument
744 if (count >= PAGE_SIZE) in sel_write_validatetrans()
752 req = memdup_user_nul(buf, count); in sel_write_validatetrans()
760 oldcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
764 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
768 taskcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
790 rc = count; in sel_write_validatetrans()
1203 size_t count, loff_t *ppos) in sel_read_bool() argument
1233 ret = simple_read_from_buffer(buf, count, ppos, page, length); in sel_read_bool()
1244 size_t count, loff_t *ppos) in sel_write_bool() argument
1253 if (count >= PAGE_SIZE) in sel_write_bool()
1260 page = memdup_user_nul(buf, count); in sel_write_bool()
1285 length = count; in sel_write_bool()
1301 size_t count, loff_t *ppos) in sel_commit_bools_write() argument
1308 if (count >= PAGE_SIZE) in sel_commit_bools_write()
1315 page = memdup_user_nul(buf, count); in sel_commit_bools_write()
1337 length = count; in sel_commit_bools_write()
1415 size_t count, loff_t *ppos) in sel_read_avc_cache_threshold() argument
1422 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_avc_cache_threshold()
1427 size_t count, loff_t *ppos) in sel_write_avc_cache_threshold() argument
1440 if (count >= PAGE_SIZE) in sel_write_avc_cache_threshold()
1447 page = memdup_user_nul(buf, count); in sel_write_avc_cache_threshold()
1457 ret = count; in sel_write_avc_cache_threshold()
1464 size_t count, loff_t *ppos) in sel_read_avc_hash_stats() argument
1475 length = simple_read_from_buffer(buf, count, ppos, page, length); in sel_read_avc_hash_stats()
1482 size_t count, loff_t *ppos) in sel_read_sidtab_hash_stats() argument
1493 length = simple_read_from_buffer(buf, count, ppos, page, in sel_read_sidtab_hash_stats()
1655 size_t count, loff_t *ppos) in sel_read_initcon() argument
1666 ret = simple_read_from_buffer(buf, count, ppos, con, len); in sel_read_initcon()
1726 size_t count, loff_t *ppos) in sel_read_class() argument
1731 return simple_read_from_buffer(buf, count, ppos, res, len); in sel_read_class()
1740 size_t count, loff_t *ppos) in sel_read_perm() argument
1745 return simple_read_from_buffer(buf, count, ppos, res, len); in sel_read_perm()
1754 size_t count, loff_t *ppos) in sel_read_policycap() argument
1764 return simple_read_from_buffer(buf, count, ppos, tmpbuf, length); in sel_read_policycap()