Vanshita Verma's Work Product - Add Support of Unix Permission in the Shmdata Library

Name and Contact Information

  • name: Vanshita Verma
  • gitlab username: @vanshitaverma
  • timezone: GMT+5:30

Title

Add Support of Unix Permission in the Shmdata Library

Short description of work done

The project was aimed at adding UNIX permissions to the shmdata library. Essentially, the work comprised checking and providing access to the shared data streams according to the permissions given while writing/sending the data stream. Changes were made to the files of code that dealt with the UNIX socket server, semaphores, and shared memory.

The code files were changed from getting default read and write permissions to have a bit-wise octal mode variable so that we could set the permissions according to requirement.

The work done mostly revolved around creating a test that checks the UNIX permissions of the data stream file. A test file was coded/written to check the read, write and execute permissions of the data file we are dealing with. It also checks if the owner, group or user is trying to access the data file, if it has permissions to perform the function, and reports the status of the file.

For a more detailed write up with my experience as a contributor with SAT, check out this blog

What code got merged

Merge Request along with the commits made throughout the course of the program:

Link to the MR

Adding Unix Permissions setting to the CPP and C writer

What code didn’t get merged

Commits in the merge request that were later removed because they needn't be merged into the repository as new development was made midway through the project:

What’s left to do

All proposed features decided before the start of the GSoC program implemented.