-
Notifications
You must be signed in to change notification settings - Fork 5
/
security.inc
66 lines (50 loc) · 1.48 KB
/
security.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
######################
General considerations
######################
#. follow best practices
#. no default passwords
#. no hardcoded passwords
#. user settings similar to Ubuntu (use ``sudo``, disabled ``root`` user)
#. avoid running applications as root
#. HW access requires group membership
Main issues:
#. backward compatibility
#. Fat32 does not provide necessary file attributes
###
UIO
###
http://elinux.org/images/b/b0/Uio080417celfelc08.pdf
https://lwn.net/Articles/232575/
###########################
Hardware access permissions
###########################
Debugging UDEV rules
.. code-block:: shell-session
udevadm info -a /dev/xdevcfg
udevadm info -a /dev/uio0
udevadm info -a /sys/devices/soc0/led-user/leds/led0
udevadm info -a /sys/devices/soc0/amba/e000a000.gpio/gpio
udevadm info -a /dev/spidev1.0
udevadm info -a /dev/i2c-0
udevadm info -a /sys/bus/i2c/devices/0-0050
udevadm info -a /dev/ttyPS1
udevadm info -a /dev/iio\:device0
udevadm info -a /dev/iio\:device1
udevadm info -a /dev/rprx
#####
Users
#####
=====================================
System users for running applications
=====================================
==========================
``redpitaya`` default user
==========================
=============
``root`` user
=============
Aftert the first boot the ``root`` user does not have a password
and is therefore disabled.
Setting ``root`` user password enables access to the account:
.. code-block:: shell-session
$ sudo passwd root