One way to limit the effect of an untrusted program is confinement: controlling what processes have access to the untrusted program and what access the program has to other processes and data. Explain how confinement would apply to the earlier example of the program that computes the sum of the integers 1 to 10.

What will be an ideal response?


Assuming the only activity of the program is computing the sum from1 to 10, confinement would achieve two things. First, the confining program would act as a filter between the callers and the untrusted program. A calling program would call the confining process, requesting to call the summation program. The calling program would have no direct access to the summation program. Second, the confining program would check the result of the summation program. In this simple situation, the confining process could check that the answer was exactly 55 (the sum from 1 to 10). In a more realistic situation, the confining process could check the computation for reasonableness: considering the magnitude of the input values, values of other system variables, the name or owner of the calling program, and so on, is the result reasonable? Are the requests for access to auxiliary system resources by the untrusted program reasonable?

Confining programs such as described here do exist. They are generally called wrappers because they wrap the untrusted code in a trustworthy filter.

Computer Science & Information Technology

You might also like to view...

When doing the utilitarian ____________________, you need to account for all of the affected parties.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A module consists of ________, which is a unit of computer code that performs some type of action

A) controls B) procedures C) macros D) activities

Computer Science & Information Technology

Batteries in mobile devices can explode in the right environment

Indicate whether the statement is true or false

Computer Science & Information Technology

What numbers are displayed in the list box by the following program segment?

``` Dim numbers() As Integer = {4, 7, 9, 3, 1} Dim query = From number in numbers Where number > 6 Select number lstBox.Items.Add(query.Count) lstBox.Items.Add(query.Average) ``` (A) 5 and 12 (B) 2 and 12 (C) 2 and 8 (D) 5 and 8

Computer Science & Information Technology