Skip to content

Commit b696581

Browse files
committed
Merged PR 5243670: Add MIT license and copyright info
Add MIT license and copyright info
1 parent b772558 commit b696581

12 files changed

+44
-1
lines changed

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/ast.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use std::fmt;
24
use std::ops::Range;
35

src/bin/audit2hll.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
fn main() {
24
println!("Hello World!");
35
}

src/bin/hllc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use selinuxhll::compile_system_policy;
24
use selinuxhll::error::HLLErrorItem;
35

src/compile.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use sexp::{atom_s, list, Sexp};
24
use std::collections::{HashMap, HashSet};
35
use std::convert::TryFrom;

src/constants.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
pub const ALLOW_FUNCTION_NAME: &'static str = "allow";
24
pub const DONTAUDIT_FUNCTION_NAME: &'static str = "dontaudit";
35
pub const AUDITALLOW_FUNCTION_NAME: &'static str = "auditallow";

src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use codespan_reporting::diagnostic::{Diagnostic, Label};
24
use codespan_reporting::files::SimpleFile;
35
use codespan_reporting::term;

src/internal_rep.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use sexp::{atom_s, list, Atom, Sexp};
24
use std::collections::HashMap;
35
use std::convert::TryFrom;

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
#[macro_use]
24
extern crate lalrpop_util;
35

src/obj_class.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// Object class and permissions declarations live here
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
23

4+
// Object class and permissions declarations live here
35
use crate::internal_rep::ClassList;
46

57
const COMMON_FILE_SOCK_PERMS: &'static [&'static str] = &[

src/parser.lalrpop

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use crate::ast::{HLLString, Policy, Declaration, Expression, Statement, TypeDecl, FuncDecl, Argument, Annotation, Annotations, Virtualable, FuncCall, DeclaredArgument};
24

35
grammar;

src/sexp_internal.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// SPDX-License-Identifier: MIT
13
use sexp::*;
24

35
// the sexp crate doesn't treat foo and "foo" as separate strings, which we need

0 commit comments

Comments
 (0)