Copyright
Changes:
- Add Red Hat's copyright notice to all code that I've changed... (is this done properly?)
- delete old file record.h, which I had forgotten all about... it's not used anymore.
libsemanage/include/semanage/boolean_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_BOOLEAN_RECORD_H_#define _SEMANAGE_BOOLEAN_RECORD_H_
libsemanage/include/semanage/booleans_local.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_BOOLEANS_LOCAL_H_#define _SEMANAGE_BOOLEANS_LOCAL_H_
libsemanage/include/semanage/booleans_policy.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_BOOLEANS_POLICY_H_#define _SEMANAGE_BOOLEANS_POLICY_H_
libsemanage/include/semanage/context_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_CONTEXT_RECORD_H_#define _SEMANAGE_CONTEXT_RECORD_H_
libsemanage/include/semanage/iface_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_IFACE_RECORD_H_#define _SEMANAGE_IFACE_RECORD_H_
libsemanage/include/semanage/interfaces_local.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_INTERFACES_LOCAL_H_#define _SEMANAGE_INTERFACES_LOCAL_H_
libsemanage/include/semanage/interfaces_policy.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_INTERFACES_POLICY_H_#define _SEMANAGE_INTERFACES_POLICY_H_
libsemanage/include/semanage/port_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PORT_RECORD_H_#define _SEMANAGE_PORT_RECORD_H_
libsemanage/include/semanage/ports_local.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PORTS_LOCAL_H_#define _SEMANAGE_PORTS_LOCAL_H_
libsemanage/include/semanage/ports_policy.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PORTS_POLICY_H_#define _SEMANAGE_PORTS_POLICY_H_
libsemanage/include/semanage/semanage.h +2 -1
@@ -2,7 +2,8 @@* Jason Tang <[email protected]> * * Copyright (C) 2005 Tresys Technology, LLC -* +* Copyright (C) 2005 Red Hat, Inc. +* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either
libsemanage/include/semanage/seuser_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_SEUSER_RECORD_H_#define _SEMANAGE_SEUSER_RECORD_H_
libsemanage/include/semanage/seusers.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_SEUSERS_H_#define _SEMANAGE_SEUSERS_H_
libsemanage/include/semanage/user_record.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_USER_RECORD_H_#define _SEMANAGE_USER_RECORD_H_
libsemanage/include/semanage/users_local.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_USERS_LOCAL_H_#define _SEMANAGE_USERS_LOCAL_H_
libsemanage/include/semanage/users_policy.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_USERS_POLICY_H_#define _SEMANAGE_USERS_POLICY_H_
libsemanage/src/boolean_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <sepol/boolean_record.h> typedef sepol_bool_t semanage_bool_t ;
libsemanage/src/booleans_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/boolean_record.h> typedef semanage_bool_t record_t ;
libsemanage/src/booleans_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_BOOLEANS_FILE_H_#define _SEMANAGE_BOOLEANS_FILE_H_
libsemanage/src/booleans_local.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/boolean_record.h> typedef semanage_bool_key_t record_key_t ;
libsemanage/src/booleans_policy.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/boolean_record.h> typedef semanage_bool_key_t record_key_t ;
libsemanage/src/booleans_policydb.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/boolean_record.h> typedef semanage_bool_t record_t ;
libsemanage/src/booleans_policydb.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_BOOLEANS_POLICYDB_INTERNAL_H_#define _SEMANAGE_BOOLEANS_POLICYDB_INTERNAL_H_
libsemanage/src/context_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <sepol/context_record.h> #include "handle.h"
libsemanage/src/database.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/handle.h> #include "semanage_store.h" #include "database.h"
libsemanage/src/database_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +struct dbase_file ;typedef struct dbase_file dbase_t ;#define DBASE_DEFINED
libsemanage/src/database_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_DATABASE_FILE_INTERNAL_H_#define _SEMANAGE_DATABASE_FILE_INTERNAL_H_
libsemanage/src/database.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_DATABASE_H_#define _SEMANAGE_DATABASE_H_
libsemanage/src/database_policydb.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +struct dbase_policydb ;typedef struct dbase_policydb dbase_t ;#define DBASE_DEFINED
libsemanage/src/database_policydb.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_DATABASE_POLICYDB_INTERNAL_H_#define _SEMANAGE_DATABASE_POLICYDB_INTERNAL_H_
libsemanage/src/direct_api.c +2 -1
@@ -1,7 +1,8 @@/* Author: Jason Tang <[email protected]> * * Copyright (C) 2004-2005 Tresys Technology, LLC -* +* Copyright (C) 2005 Red Hat, Inc. +* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either
libsemanage/src/handle.c +2 -1
@@ -2,7 +2,8 @@* Jason Tang <[email protected]> * * Copyright (C) 2004-2005 Tresys Technology, LLC -* +* Copyright (C) 2005 Red Hat, Inc. +* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either
libsemanage/src/iface_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <sepol/context_record.h> #include <sepol/iface_record.h>
libsemanage/src/interfaces_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/iface_record.h> typedef semanage_iface_t record_t ;
libsemanage/src/interfaces_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_INTERFACES_FILE_H_#define _SEMANAGE_INTERFACES_FILE_H_
libsemanage/src/interfaces_local.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/iface_record.h> typedef semanage_iface_key_t record_key_t ;
libsemanage/src/interfaces_policy.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/iface_record.h> typedef semanage_iface_key_t record_key_t ;
libsemanage/src/interfaces_policydb.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/iface_record.h> typedef semanage_iface_t record_t ;
libsemanage/src/interfaces_policydb.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_INTERFACES_POLICYDB_INTERNAL_H_#define _SEMANAGE_INTERFACES_POLICYDB_INTERNAL_H_
libsemanage/src/parse_utils.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <stdio.h> #include <stdio_ext.h> #include <errno.h>
libsemanage/src/parse_utils.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PARSE_UTILS_INTERNAL_H_#define _SEMANAGE_PARSE_UTILS_INTERNAL_H_
libsemanage/src/policy_components.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include "policy.h" #include "handle.h" #include "database.h"
libsemanage/src/port_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <sepol/context_record.h> #include <sepol/port_record.h>
libsemanage/src/ports_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/port_record.h> typedef semanage_port_t record_t ;
libsemanage/src/ports_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PORTS_FILE_H_#define _SEMANAGE_PORTS_FILE_H_
libsemanage/src/ports_local.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/port_record.h> typedef semanage_port_key_t record_key_t ;
libsemanage/src/ports_policy.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/port_record.h> typedef semanage_port_key_t record_key_t ;
libsemanage/src/ports_policydb.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/port_record.h> typedef semanage_port_t record_t ;
libsemanage/src/ports_policydb.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_PORTS_POLICYDB_INTERNAL_H_#define _SEMANAGE_PORTS_POLICYDB_INTERNAL_H_
libsemanage/src/record.h +0 -35
@@ -1,35 +0,0 @@ -#ifndef _SEMANAGE_RECORD_H_ -#define _SEMANAGE_RECORD_H_ - -#ifndef RECORD_DEFINED -typedef void *record_t ; -typedef void *record_key_t ; -#define RECORD_DEFINED -#endif - -/* RECORD interface - method table */ -typedef struct record_table { - -/* Create a record */ -int (*create) (record_t ** rec); - -/* Extract key from record */ -int (*key_extract) (record_t * rec,record_key_t ** key); - -/* Free record key */ -void (*key_free) (record_key_t * key); - -/* Return 0 if record can be matched against key, -* and 1 otherwise */ -int (*compare) (record_t * rec,record_key_t * key); - -/* Deep-copy clone of this record */ -int (*clone) (record_t * rec,record_t ** new_rec); - -/* Deallocate record resources. Must -* sucessfully handle NULL. */ -void (*free) (record_t * rec); - -}record_table_t ; - -#endif
libsemanage/src/semanage_store.c +1 -0
@@ -3,6 +3,7 @@* Jason Tang <[email protected]> * * Copyright (C) 2004-2005 Tresys Technology, LLC +* Copyright (C) 2005 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public
libsemanage/src/semanage_store.h +1 -0
@@ -3,6 +3,7 @@* Jason Tang <[email protected]> * * Copyright (C) 2004-2005 Tresys Technology, LLC +* Copyright (C) 2005 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public
libsemanage/src/seuser_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/seuser_record.h> typedef semanage_seuser_t record_t ;
libsemanage/src/seusers.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/seuser_record.h> typedef semanage_seuser_key_t record_key_t ;
libsemanage/src/seusers_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/seuser_record.h> typedef semanage_seuser_t record_t ;
libsemanage/src/seusers_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_SEUSERS_FILE_H_#define _SEMANAGE_SEUSERS_FILE_H_
libsemanage/src/seusers.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEUSERS_INTERNAL_H_#define _SEUSERS_INTERNAL_H_
libsemanage/src/user_record.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <sepol/user_record.h> typedef sepol_user_t semanage_user_t ;
libsemanage/src/users_file.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/user_record.h> typedef semanage_user_t record_t ;
libsemanage/src/users_file.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_USERS_FILE_H_#define _SEMANAGE_USERS_FILE_H_
libsemanage/src/users_local.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/user_record.h> typedef semanage_user_key_t record_key_t ;
libsemanage/src/users_policy.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/user_record.h> typedef semanage_user_key_t record_key_t ;
libsemanage/src/users_policydb.c +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#include <semanage/user_record.h> typedef semanage_user_t record_t ;
libsemanage/src/users_policydb.h +2 -0
@@ -1,3 +1,5 @@ +/* Copyright (C) 2005 Red Hat, Inc. */ +#ifndef _SEMANAGE_USERS_POLICYDB_INTERNAL_H_#define _SEMANAGE_USERS_POLICYDB_INTERNAL_H_
Quoted 4 lines · Ivan Gyurdiev
Changes:
- Add Red Hat's copyright notice to all code that I've changed... (is this done properly?)
You likely want to note the license as well; see the other files. You can also refer to the COPYING file that is included with the library, which contains the full text of the license. I'm not sure it serves any purpose to put the copyright and/or license on the public headers of the library, as it is really only applicable to the implementation IIUC, but I'm not a lawyer ;)
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.