Skip to content

平成22年度 秋期 ITパスポート試験 問95

This question's explanation and your answers so far.

問95
頻出度★★★

S 社の T 営業所では,ID カードによる入室管理システムを導入することになった。T 営業所の施設の種類と管理対象者の区分(以下,対象区分という)を表のように分類し,入室許可の有無の区分(以下,許可区分という)の設定を行う。ここで,表は施設に対して入室を許可する対象区分を“○”,入室を許可しない対象区分を“×”で示す。 表 許可区分の設定

施設\対象区分来客者営業課員
執務室×○
応接室○○

施設と対象区分に対する許可区分の設定は,入室管理システムの管理用 PC から,次の設定の形式のとおりに入力する。 〔設定の形式〕 形式1:ポリシ|許可区分 形式2:施設|許可区分|対象区分 注 形式 1 の三つ目の項目は使用しない。 (1) 設定は,形式 1 を 1 行目に記述し,形式 2 を 2 行目以降に必要な行数だけ記述する。 (2) 許可区分には,入室を許可する場合は“ACCEPT”,入室を許可しない場合は“DENY”を記述する。 (3) 形式 1 は,ポリシを記述するための形式であり,最初の項目には“ポリシ”と記述する。ポリシの記述とは,2 行目以降に記述する行のいずれにも該当しない施設と対象区分の組合せに対して,適用する許可区分を指定するものである。 (4) 形式 2 には,施設と対象区分の組合せとそれに対する許可区分を記述する。施設に対して許可区分が同じ対象区分については,コンマで区切って複数記述できる。 (5) 入室が許可されるかどうかは,2 行目以降で記述した行の順に評価される。指定した施設と対象区分の組合せの行が見つかれば,その行の許可区分を適用し,それ以降の行の評価は行わない。 次の表に示す許可区分の設定について,ポリシの許可区分を ACCEPT にしたときの設定の記述は図 1 である。新たに,課長に対して特別会議室の入室を許可することになり,“課長”という対象区分を設け,図 2 の設定の記述を追加することにした。図 1 に,図 2 の設定を追加する位置として,適切な位置は①~④のどれか。 なお,“課長”の対象区分には営業課長と技術課長が属しており,それぞれの課長はそれぞれの所属課員の対象区分にも属している。管理対象者が二つの対象区分に属する場合,設定の記述の評価において,施設と一方の対象区分との組合せと合致する行が見つかれば,その行の許可区分が適用される。

施設\対象区分来客者営業課員技術課員
特別会議室×××
会議室×○○
執務室 1×○×
執務室 2××○
応接室○○○

図 1 ポリシの許可区分が ACCEPT のときの設定の記述

施設許可区分対象区分
ポリシACCEPT
←① 特別会議室DENY来客者,営業課員,技術課員
←② 会議室DENY来客者
←③ 執務室 1DENY来客者,技術課員
執務室 2DENY来客者,営業課員
←④

図 2 追加の設定の記述

施設許可区分対象区分
特別会議室ACCEPT課長
出典 平成22年度 秋期 ITパスポート試験 問95
解説

問 95

  • ア

    正解 The correct answer is ア (①). The setting descriptions are evaluated from the 2nd line onward, from top to bottom; as soon as a line matching the specified combination of facility and target category is found, that line's permission type is applied and the lines below it are not evaluated (the first matching line wins). Here, the sales section manager and the technical section manager belong to the newly created “Section manager” category and at the same time also belong to their original “Sales staff” and “Technical staff” categories. The line 〔Special meeting room DENY Visitor, Sales staff, Technical staff〕 in Figure 1 matches the combination of the special meeting room with the manager's other category (Sales staff / Technical staff), so if the added line 〔Special meeting room ACCEPT Section manager〕 is placed below this DENY line, the evaluation is settled at the DENY line and managers cannot enter the special meeting room. Therefore the ACCEPT Section manager line, which permits entry as an exception, must be inserted before the DENY line, that is, at ①, immediately after the policy line. Even when it is placed at ①, visitors, sales staff, and technical staff who are not section managers do not belong to the “Section manager” category and do not match the added line, so the DENY line right after it applies and they remain unable to enter, just as before. The judgments for the meeting room, office room 1, office room 2, and the reception room are also unaffected.

  • Incorrectイ

    ② is the position immediately after the line 〔Special meeting room DENY Visitor, Sales staff, Technical staff〕. When the sales section manager tries to enter the special meeting room, the evaluation proceeds from the top and reaches this DENY line first. Because the sales section manager also belongs to the “Sales staff” category, the combination of the facility with one of the target categories matches, DENY is applied, and the evaluation ends there. The added ACCEPT Section manager line is never read, so the goal of permitting section managers to enter cannot be achieved.

  • Incorrectウ

    ③ is even further down, after 〔Meeting room DENY Visitor〕, and it is the same as ② in that it lies below the DENY line for the special meeting room. A section manager first matches 〔Special meeting room DENY Visitor, Sales staff, Technical staff〕, so entry is denied at that point and the evaluation never reaches the added line. The further down the line is placed, the more surely it is overtaken by the principle that the first matching line wins.

  • Incorrectエ

    ④ is the end of the list. Because the DENY line concerning the special meeting room is evaluated first, a section manager is always judged DENY there, and the ACCEPT Section manager line at the end is never evaluated. Deciding the default value applied to combinations that match no line is the role of the policy line on the 1st line, and adding a Format 2 line at the end cannot serve as that default.

ここがポイント
  • Access control rules are evaluated in order from the top; the permission type of the first matching line is applied and the lines after it are not evaluated (the first matching line wins). Therefore a rule that permits only a subset as an exception must always be written above the broader denial rule that covers it. If the order is reversed, the exception line is never evaluated.
  • When one managed subject belongs to multiple target categories, a line applies as soon as the combination of the facility with one of those categories matches. Therefore how a person with overlapping categories (a section manager is a manager and also a staff member) is treated depends on the order in which the lines are written. The policy line on the 1st line is the default applied to combinations that match no line, which is a different role from specifying an exception through ordering.
用語

Your answers