Commit Graph

9 Commits

Author SHA1 Message Date
Joris Vink cd9971247c Add seccomp syscall filtering to kore.
With this commit all Kore processes (minus the parent) are running
under seccomp.

The worker processes get the bare minimum allowed syscalls while each module
like curl, pgsql, etc will add their own filters to allow what they require.

New API functions:
    int kore_seccomp_filter(const char *name, void *filter, size_t len);

    Adds a filter into the seccomp system (must be called before
    seccomp is enabled).

New helpful macro:
    define KORE_SYSCALL_ALLOW(name)

    Allow the syscall with a given name, should be used in
    a sock_filter data structure.

New hooks:
    void kore_seccomp_hook(void);

    Called before seccomp is enabled, allows developers to add their
    own BPF filters into seccomp.
2019-09-25 14:31:20 +02:00
Joris Vink 8aaf7aaf79 Alter where the version number comes from.
Now if we are a git repo we fetch the branch name and
commitid to build the version string. If there is no
git repo we'll look at the RELEASE file.
2018-06-22 14:24:42 +02:00
Marcin Szczepaniak 5bf5e4c8a6 Add kodev binary and kore.features to gitignore (#226) 2018-02-17 17:28:01 +01:00
Raphaël Monrouzeau a07cf87b15 Ignored .lvimrc and prior vim stale files if there 2016-07-09 12:27:01 +02:00
Joris Vink 39a5f21986 Allow "kore build" to produce single binaries.
Producing single binaries can now be done with building with
"kore build". To get started edit your build.conf and add the
following directives:

single_binary = yes
kore_source = /path/to/kore

optionally you can add kore_flavor to instruct how kore should
be built:

kore_flavor = NOTLS=1

When doing this your build.conf must also include the correct
linking options as the linking is now done fully by kore build.

The binary produced will include your configuration and takes
over a few of kore its command line flags (such as -f, -n or -r).
2016-07-06 16:16:15 +02:00
Joris Vink 8e88ac41ff Ignore DSYM on osx 2014-04-12 18:49:32 +02:00
Joris Vink 5e2fb37c53 Add *.module to gitignore 2014-04-09 19:14:24 +02:00
Joris Vink b19897b578 add cert/ 2014-04-02 00:07:52 +02:00
Thordur Bjornsson 26a5b920f5 Basic gitignore 2013-11-19 13:10:01 +01:00