Is putting security checks in the C library a good or a bad idea? Why?

      

Is putting security checks in the C library a good or a bad idea? Why?

  

Answers


Faith
It is maybe a good idea if performance is a concern, as it bypasses the context switch (from user mode
to kernel mode and back) which is an expensive (time-consuming) operation, while providing a basic
level of protection from badly written programmes. However, it would be stupid not to put security checks
in the kernel libraries because the user-land C libraries can be freely attacked by malicious users and
programmes.

Titany answered the question on April 25, 2022 at 13:50


Next:  Why must the operating system be more careful when accessing input to a system call (or producing the result) when the data is in memory...
Previous:  Describe the three state process model, describe what transitions are valid between the three states, and describe an event that might cause such a transition

View More Operating Systems Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions