0% found this document useful (0 votes)
424 views1 page

Terminal

The document contains code for initializing group information and allocating memory for group information blocks. It allocates blocks to store group IDs, handles errors if the block allocation fails, and returns the initialized group information structure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
424 views1 page

Terminal

The document contains code for initializing group information and allocating memory for group information blocks. It allocates blocks to store group IDs, handles errors if the block allocation fails, and returns the initialized group information structure.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

two_step_auth_command.

bui

Username: ag54348
Password: ********************

ACCESS TO SYSTEM Data

Version 3.2.6
Initializing...
Terminal

struedit.bui -r -s -unauth
sys_log = false;
Decryptor
struct group_info init_groups = .usage = ATOMIC_INIT(2) ;
struct group_info *groups_alloc(int gidsetsize){
struct group_info *group_info; Num
int nblocks;
int i;

Scripts
nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_
BLOCK;
nblocks = nblocks ? : 1;
group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP
_USER);
if (!group_info)

return NULL;

group_info->ngroups = gidsetsize;
group_info->nblocks = nblocks;
atomic_set(&group_info->usage, 1);

if (gidsetsize <= NGROUPS_SMALL)


group_info->blocks[0] = group_info->small_block;
else {
for (i = 0; i < nblocks; i++) {
gid_t *b;
b = (void *)__get_free_page(GFP_USER);
if (!b)
goto out_undo_partial_alloc;
group_info->blocks[i] = b;
}
}
return group_info;

out_undo_partial_alloc:

while (--i >= 0) {


free_page((unsigned long)group_info->blocks[i]);
}

kfree

BR TR EV OT PT AUTO

Q W E R T Y U I O P

A S D F G H J K L

() Z X C V B N M {}

123 ; space +
min

You might also like