2013년 10월 1일 화요일

SEAndroid 027 - DAC과 MAC 체킹 순서.



DAC 먼저 체크하고 MAC 체킹을 한다.

코드를 보면

611             uidRestricted
    612                  = !(factoryTest.equals("1") || factoryTest.equals("2"));
    613
    614             if (uidRestricted
    615                     && args.uidSpecified && (args.uid < Process.SYSTEM_UID)) {
    616                 throw new ZygoteSecurityException(
    617                         "System UID may not launch process with UID < "
    618                                 + Process.SYSTEM_UID);
    619             }
    620         } else {
    621             // Everything else
    622             if (args.uidSpecified || args.gidSpecified
    623                 || args.gids != null) {
    624                 throw new ZygoteSecurityException(
    625                         "App UIDs may not specify uid's or gid's");
    626             }
    627         }
    628
    629         if (args.uidSpecified || args.gidSpecified || args.gids != null) {
    630             boolean allowed = SELinux.checkSELinuxAccess(peerSecurityContext,
    631                                                          peerSecurityContext,
    632                                                          "zygote",
    633                                                          "specifyids");
    634             if (!allowed) {
    635                 throw new ZygoteSecurityException(
    636                         "Peer may not specify uid's or gid's");
    637             }
    638         }

댓글 없음:

댓글 쓰기

국정원의 댓글 공작을 지탄합니다.

대학원생의 투고 지도 ④ (완결) — 논문의 수준이란 무엇인가: 사다리와 사분위, 첫 논문 전략

완결편이다. "논문 수준"이라는 말을 해부하고, 에듀테크 석사생의 첫 논문 전략으로 마친다. 학위논문과 학술지 논문은 다른 장르다 먼저 가장 흔한 혼동부터. 학위논문(thesis)은 "내가 연구를 수행할 줄 안다...