Skip to content

Commit 6cb2842

Browse files
authored
Merge pull request #43 from 0152la/license
Add COPYRIGHT file
2 parents 85efbfd + c0b0281 commit 6cb2842

34 files changed

+70
-55
lines changed

COPYRIGHT

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Except as otherwise noted (below and/or in individual files), this project is
2+
licensed under the Apache License, Version 2.0 <LICENSE-APACHE>
3+
<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT>
4+
<http://opensource.org/licenses/MIT>, at your option.
5+
6+
Copyright is retained by contributors and/or the organisations they
7+
represent(ed) -- this project does not require copyright assignment. Please see
8+
version control history for a full list of contributors. Note that some files
9+
may include explicit copyright and/or licensing notices.
10+
11+
The following contributors wish to explicitly make it known that the copyright
12+
of their contributions is retained by an organisation:
13+
14+
Laurence Tratt <laurie@tratt.net>:
15+
copyright retained by King's College London

include/compartment.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int64_t
4242
comp_exec_in(void *, void *__capability, void *, void *, size_t,
4343
void *__capability, void *);
4444
void
45-
comp_exec_out();
45+
comp_exec_out(void);
4646

4747
// Declare built-in function for cache synchronization:
4848
// https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/caches-and-self-modifying-code

include/intercept.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct Compartment *manager_get_compartment_by_id(size_t);
2222

2323
extern void *__capability manager_ddc;
2424
extern void
25-
comp_exec_out();
25+
comp_exec_out(void);
2626

2727
// Number of capabilities required to perform a transition
2828
#define COMP_RETURN_CAPS_COUNT 2
@@ -52,10 +52,10 @@ struct FuncIntercept
5252
* most likely break things.
5353
*/
5454
void
55-
intercept_wrapper();
55+
intercept_wrapper(void);
5656

5757
void
58-
setup_intercepts();
58+
setup_intercepts(void);
5959

6060
// TODO Reimplement this for inter-compartment function calls
6161
// size_t

include/linux_harness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define __capability
55

66
void *
7-
cheri_ddc_get()
7+
cheri_ddc_get(void)
88
{
99
return NULL;
1010
}

include/manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ union arg_holder
4646
char *
4747
prep_config_filename(char *);
4848
void
49-
clean_all_comps();
49+
clean_all_comps(void);
5050
void
5151
clean_comp(struct Compartment *);
5252
void

include/symbols_comp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct CompSymbol
1818
};
1919

2020
comp_symbol_list *
21-
comp_syms_init();
21+
comp_syms_init(void);
2222
void
2323
comp_syms_clean(comp_symbol_list *);
2424
void

include/symbols_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct LibDependencySymbol
1919
};
2020

2121
lib_symbol_list *
22-
lib_syms_init();
22+
lib_syms_init(void);
2323
void
2424
lib_syms_clean(lib_symbol_list *);
2525
void

src/comp_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ reallocarray(void *to_realloc, size_t elem_count, size_t elem_size)
209209
}
210210

211211
void
212-
tls_lookup_stub()
212+
tls_lookup_stub(void)
213213
{
214214
// Get TLS index
215215
// TODO works only for one TLS region

src/compartment.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const char *comp_utils_soname = "libcomputils.so";
99
******************************************************************************/
1010

1111
static struct Compartment *
12-
comp_init();
12+
comp_init(void);
1313
static struct LibDependency *
14-
lib_init();
14+
lib_init(void);
1515

1616
static struct LibDependency *
1717
parse_lib_file(char *, struct Compartment *);
@@ -77,7 +77,7 @@ print_comp_simple(struct Compartment *);
7777
* be set in `comp_from_elf`.
7878
*/
7979
static struct Compartment *
80-
comp_init()
80+
comp_init(void)
8181
{
8282
// TODO order
8383
struct Compartment *new_comp = malloc(sizeof(struct Compartment));
@@ -105,7 +105,7 @@ comp_init()
105105
}
106106

107107
static struct LibDependency *
108-
lib_init()
108+
lib_init(void)
109109
{
110110
struct LibDependency *new_lib = malloc(sizeof(struct LibDependency));
111111

src/intercept.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void *__capability sealed_redirect_cap;
1717
* this is the only component visible to the compartments
1818
*/
1919
void
20-
setup_intercepts()
20+
setup_intercepts(void)
2121
{
2222
sealed_redirect_cap = manager_ddc;
2323
sealed_redirect_cap

0 commit comments

Comments
 (0)