

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CS 461 / ECE 422 Information Assurance HW # Due submitted to Compass by 3:30 p.m. Feb. 28
(1 pt) In most systems, the number of users is much less the number of shared objects. Thus, slicing ACM by column (object) is likely to be faster at checking an access by a given user to a given object. (1 pt) By the same reason, the required overall storage space is also usually less than that of slicing ACM by row (subject).
Name user group permissions home root root drwxr-x-r-x prof prof staff drwxr-x—x ece422 prof class drwxr-x—x exam prof prof drwxrwx--- key.doc prof staff -rw-r-xr-x
Which of the following accesses are permitted (circle) User prof can delete file key.doc User TA can add a new file corrected-key.doc to subdirectory exam. User student can read file key.doc (the directory “exam” holding “key.doc” cannot be accessed by student, so student cannot read “key.doc” either) User TA can execute the „ls‟ command on path /home/prof/ece422 and see all the names of files and directories it contains. If you assume “class group” includes TA, the fourth option could be circled. Otherwise, it should not be circled.
(1point) Segmented memory is sliced in terms of logical unit. Each segment stores a piece of data with semantic meanings, such as code, data, etc. Operating system can place any segment at any location or move any segment to any location. Every address reference passes through the operating system, so there
is an opportunity to check each on for protection. Because segments are logical units, segmentation offers a number of security benefits: we can associate different segments with individual protection rights, such as read-only (non- variable) or execute-only (for program code). Many different classes of data items can be assigned different levels of protection. Two or more users can share access to a segment, with potentially different access rights. The main drawback of segmentation is segment size. Since a segment has fixed size, for each access, the offset must be checked to prevent reference from exceeding the bound. It also cannot handle dynamic data structure which could demand more space than the segment can provide initially. Encoding segment name also introduces the inefficiency of instruction decode and data sharing. (1 point) In paged memory, the program is divided into equal-sized pieces. Paging can provide protection between users or processes in coarse granularity. The problems in segmentation due to size are fixed inherently. However, each page has no semantic meanings, i.e. there is no necessary unity to the items on a page, so there is no way to establish that all values on a page should be protected at the same level.
A solution is to combine paging with segmentation, taking advantage of both implementation efficiencies in paging and logical protection characteristics in segmentation.
Yes, it is possible. One basic method is to use one or two more bytes memory for each memory unit to indicate the unit‟s protection level. When a process wants to access the unit, the extra byte (just like a tag) will be checked first. It also can be implemented by segmentation if the size of each segment is small enough to meet the security requirements and corresponding security tag/bits are added to segment translation table. Obviously, such mechanisms will introduce much more overhead with respect to both time and space. For the segmentation solution, the problems due to the size of segments will become more serious.