You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+98-70Lines changed: 98 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,24 @@ This is a fork of https://github.com/Bisa/factorio-init
13
13
# Dependencies
14
14
Among others:
15
15
- cURL
16
-
17
-
## SELINUX Dependencies
16
+
- git
17
+
- glibc-devel
18
+
- glibc
19
+
- make
20
+
- gcc-c++ - C++ component for glibc (optional)
21
+
- texinfo - documentation output for glibc
22
+
- libselinux-devel - SELINUX aware glibc
23
+
- audit-libs-devel - SELINUX auditing aware
24
+
- libcap-devel - root privileges partitioning for glibc
25
+
26
+
## SELINUX specific dependencies
18
27
-**REQUIRED**
19
28
- SELINUX installed and enabled.
20
29
-`setenforce 1` - If you do not know what this command does, **STOP!** DO NOT PROCEED! Please read up on SELINUX Administration.
21
30
-_coreutils_ package - Required in all cases.
22
31
-_policycoreutils_ package - Required in all cases.
23
-
-**REQUIRED if small changes or recompiling only**
32
+
-**REQUIRED if small changes or recompiling only** - You will not need this if you use the RPM.
24
33
-_policycoreutils-python_ package - Optional if using RPM. Required if compiling yourself.
25
-
- gcc - Required to recompile.
26
-
- make - Required to recompile.
27
34
-_policycoreutils-devel_ package - Optional if using RPM or just making small adjustments. Required if debugging.
28
35
-_setools-console_ package - Required if debugging, optional in other cases.
29
36
@@ -32,128 +39,149 @@ This is a fork of https://github.com/Bisa/factorio-init
32
39
If you find yourself wondering why stuff is not working the way you expect:
33
40
- Check the logs, I suggest you `tail -f /opt/factorio/factorio-current.log` in a separate session
34
41
- Enable debugging in the config and/or:
35
-
- Try running the same commands as the factorio user (`/opt/factorio-init/factorio invocation` will tell you what the factorio user tries to run at start)
42
+
- Try running the same commands as the factorio user (`/opt/factorio-SEinit/factorio invocation` will tell you what the factorio user tries to run at start)
36
43
37
44
```bash
38
-
$ /opt/factorio-init/factorio invocation
45
+
/opt/factorio-SEinit/factorio invocation
39
46
# Run this as the factorio user, example:
40
-
$ sudo -u factorio 'whatever invocation gave you'
47
+
sudo -u factorio 'whatever invocation gave you'
41
48
# You should see some output in your terminal here, hopefully giving
42
49
# you a hint of what is going wrong
43
50
```
44
51
52
+
- You may need to study the audit logs at `/var/log/audit/audit.log` and see what is being blocked.
53
+
- You may need to disable the `dontaudit` flag and force auditing to get the output to the audit log with more answers: `semodule --disable_dontaudit --build`
54
+
- If you followed hardening guides, you may need to adjust the *umask* temporarily back to `umask 022` which was the default, or run:
55
+
```bash
56
+
find /opt/glibc-2.18 -type d -exec chmod 755 {} \;
57
+
find /opt/factorio-SEinit -type d -exec chmod 755 {} \;
58
+
find /opt/factorio -type d -exec chmod 755 {} \;
59
+
```
60
+
45
61
# Install
46
-
- Create a directory where you want to store this script along with configuration. (either copy-paste the files or clone from github):
62
+
- Create a directory where you want to store this script along with configuration. Cloning from github assuming **/opt/factorio-SEinit** as the directory:
make -f /usr/share/selinux/devel/Makefile factorio.pp
110
+
semodule -i factorio.pp
111
+
restorecon -R -v /opt/factorio-SEinit
112
+
restorecon -R -v /opt/glibc-2.18
75
113
```
76
-
77
-
## Notes for users with CentOS 7 that has a older glibc version:
78
-
79
-
- The config has options for declaring a alternate glibc root. The user millisa over on the factorio forums has created a wonderful guide to follow on creating this alternate glibc root ( side by side ) here:
- To all who find this script useful in one way or the other
153
179
- A big thank you to [Wube](https://www.factorio.com/team) for making [Factorio](https://www.factorio.com/)
154
-
- A special thanks to NoPantsMcDance, Oxyd, HanziQ, TheFactorioCube and all other frequent users of the [#factorio](irc://irc.esper.net/#factorio) channel @ esper.net
155
-
- Thank you to Salzig for pointing me in the right direction when it comes to input redirection
156
-
- At last, but not least; Thank you to all [contributors](https://github.com/Bisa/factorio-init/graphs/contributors) and users posting [issues](https://github.com/Bisa/factorio-init/issues) in my [github](https://github.com/Bisa/factorio-init/) project or on the [factorio forums](https://forums.factorio.com/viewtopic.php?f=133&t=13874)
180
+
- A special thanks to NoPantsMcDance, Oxyd, HanziQ, TheFactorioCube and all other frequent users of the [**#factorio**](irc://irc.esper.net/#factorio) channel @ esper.net
181
+
- Thank you to Salzig for pointing Bisa in the right direction when it comes to input redirection
182
+
- The user _millisa_ over on the [factorio forums](https://forums.factorio.com/viewtopic.php?t=54654#p324493) for creating a wonderful guide to follow on making an alternate glibc root.
183
+
- Please report any [(SE)init issues](https://github.com/jhawkwind/factorio-SEinit/issues) you find.
184
+
- At last, but not least; Thank you to all [(SE)init contributors](https://github.com/jhawkwind/factorio-SEinit/graphs/contributors) and users posting [mainline issues](https://github.com/Bisa/factorio-init/issues) in Bisa's original [github](https://github.com/Bisa/factorio-init/) project or on the [factorio forums](https://forums.factorio.com/viewtopic.php?f=133&t=13874)
157
185
158
186
You are all a great source of motivation, thank you.
0 commit comments