platform/upstream/iptables.git
8 months agoinclude: linux: Update kernel.h 04/307404/1 accepted/tizen_9.0_base accepted/tizen_base accepted/tizen_base_asan accepted/tizen_base_toolchain accepted/tizen_base_x accepted/tizen_base_x_asan sandbox/dkson95/linux-glibc-devel-update tizen_9.0_base tizen_base accepted/tizen/9.0/base/20241030.075255 accepted/tizen/base/20240403.212427 accepted/tizen/base/asan/20240406.082608 accepted/tizen/base/toolchain/20240311.005036 accepted/tizen/base/toolchain/20240313.085657 accepted/tizen/base/x/20240408.015907 accepted/tizen/base/x/asan/20240412.002841 tizen_9.0_m2_release
Phil Sutter [Wed, 6 Sep 2023 17:02:52 +0000 (19:02 +0200)]
include: linux: Update kernel.h

Its contents were moved into const.h and sysinfo.h, apply these changes
to the cached copies. Fixes for the following warning when compiling
xtables-monitor.c with new kernel headers in /usr/include:

| In file included from ../include/linux/netfilter/x_tables.h:3,
|                  from ../include/xtables.h:19,
|                  from xtables-monitor.c:36:
| ../include/linux/kernel.h:7: warning: "__ALIGN_KERNEL" redefined
|     7 | #define __ALIGN_KERNEL(x, a)            __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
|       |
| In file included from /usr/include/linux/netlink.h:5,
|                  from /home/n0-1/git/libmnl/install/include/libmnl/libmnl.h:9,
|                  from xtables-monitor.c:30:
| /usr/include/linux/const.h:31: note: this is the location of the previous definition
|    31 | #define __ALIGN_KERNEL(x, a)            __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1)
|       |

Signed-off-by: Phil Sutter <phil@nwl.cc>
Cherry-picked from: cb884bf73a4d8585a7739702ca690fdc590341ba
Change-Id: Ifbdce5b37c1fed8c49339b1086998effefd3ef27

19 months agoextensions: libxt_conntrack: remove always-false conditionals 55/290855/1 accepted/tizen_8.0_base accepted/tizen_base_dev tizen_8.0_base accepted/tizen/8.0/base/20231005.044812 accepted/tizen/base/20230405.234824 accepted/tizen/base/dev/20230602.080731 accepted/tizen/base/toolchain/20240311.164253 tizen_8.0_m2_release
Florian Westphal [Sat, 23 Jul 2022 18:25:49 +0000 (20:25 +0200)]
extensions: libxt_conntrack: remove always-false conditionals

libxt_conntrack.c:1292: warning: the comparison will always evaluate as
false for the address of origsrc_addr will never be NULL [-Waddress]

Backport commit:
https://git.netfilter.org/iptables/commit/?id=e88085ac41b4c962e1d85dcc8dc6fa0d1f80dc12

Change-Id: I2800f0326273e537b2c75f7698f1b7525d13c99a
Signed-off-by: Florian Westphal <fw@strlen.de>
19 months agolibxt_recent: Remove ineffective checks for info->name 54/290854/1
Phil Sutter [Fri, 20 Oct 2017 11:24:36 +0000 (13:24 +0200)]
libxt_recent: Remove ineffective checks for info->name

In struct xt_recent_mtinfo{,_v1}, field 'name' is an array, not a
pointer. So there is no point in comparing it against NULL. Changing the
check to make sure it's content is not an empty string is pointless
either, since a non-empty default string is used and the argument parser
will refuse empty strings as --name argument. So simply get rid of the
checks altogether.

Backport commit:
https://git.netfilter.org/iptables/commit/?id=d0e3d95fa3442c6ff32f7fed3e0d2eeb2248ef9f

Change-Id: I59efe3f354b4235c976497c1cad85b01a73cd867
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
3 years agolibxtables: Avoid buffer overrun in xtables_compatible_revision() 20/256220/1 accepted/tizen_6.5_base accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_unified tizen tizen_6.5_base tizen_7.0_base tizen_7.0_base_hotfix accepted/tizen/6.5/base/20211028.060000 accepted/tizen/7.0/base/20221116.025811 accepted/tizen/7.0/base/hotfix/20221116.055219 accepted/tizen/base/20210823.102850 accepted/tizen/base/20221115.103648 accepted/tizen/unified/20210402.091034 submit/tizen/20210331.081527 submit/tizen/20210823.081025 submit/tizen_6.5_base/20211028.134101 submit/tizen_base/20210823.081241 tizen_6.5.m2_release tizen_7.0_m2_release
Seonah Moon [Wed, 31 Mar 2021 05:05:46 +0000 (14:05 +0900)]
libxtables: Avoid buffer overrun in xtables_compatible_revision()

The function is exported and accepts arbitrary strings as input. Calling
strcpy() without length checks is not OK.

Backport commit:
https://git.netfilter.org/iptables/commit/?id=f7d3dbb82e7ed94ccbf10cf70a3c7b3f3aaef1a1

Change-Id: Ibe4d0957fd6d9dd284ac3f84a328ea7b85e32b6b

4 years agogcc9: ignore build warnings 91/221191/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.105854 accepted/tizen/6.0/unified/hotfix/20201102.234049 accepted/tizen/6.0/unified/hotfix/20201103.050227 accepted/tizen/unified/20200102.220757 submit/tizen/20200102.041419 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 tizen_6.0.m2_release
Seonah Moon [Mon, 30 Dec 2019 05:01:11 +0000 (14:01 +0900)]
gcc9: ignore build warnings

iptables is OPENP package.
So, This change adds exception options to CFLAGS.

Change-Id: Ie73e24c0c52fbc19fb900c57954c1300ca8c7f46

5 years agoextensions: libxt_owner: Add supplementary groups option 54/209254/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.011210 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073900 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100204 accepted/tizen/unified/20190708.052532 submit/tizen/20190705.040622 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 tizen_5.5.m2_release
Cheoleun Moon [Thu, 4 Jul 2019 03:28:14 +0000 (12:28 +0900)]
extensions: libxt_owner: Add supplementary groups option

extensions: libxt_owner: Add supplementary groups option
The --suppl-groups option causes GIDs specified with --gid-owner to be
also checked in the supplementary groups of a process.

Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Change-Id: If33e85d065867b63b5962f6596e04df40f6312a4

6 years ago[Fix] Build issue for x86_64 architecture 29/168029/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.024531 accepted/tizen/unified/20180126.042839 submit/tizen/20180124.050653 submit/tizen/20180125.065647 submit/tizen_5.0/20181101.000006
Mayank Haarit [Tue, 23 Jan 2018 14:16:17 +0000 (19:46 +0530)]
[Fix] Build issue for x86_64 architecture

Description: This patch fixes build issue for x86_64 architecture.
It adds -fPIC compile time flag in spec file.

Change-Id: I14d9b4d430fbf1f1266b50a4939d76c82e65e22a
Signed-off-by: Mayank Haarit <mayank.h@samsung.com>
6 years agoAdded hardening compiler flags in the spec file. 44/167844/1 submit/tizen/20180123.012239
Abhishek Sansanwal [Mon, 22 Jan 2018 09:41:42 +0000 (15:11 +0530)]
Added hardening compiler flags in the spec file.

Change-Id: I2ad97b89cf85fbea165550da24477434fd822ec6
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
6 years agoInstead of using the configure file generated, use the autogen.sh script 35/166835/1 accepted/tizen/unified/20180118.071126 submit/tizen/20180116.233136 submit/tizen/20180117.225336
Abhishek Sansanwal [Fri, 12 Jan 2018 05:20:53 +0000 (10:50 +0530)]
Instead of using the configure file generated, use the autogen.sh script

Change-Id: I9733f1c6c41e2d73a847872fac0aad5e7b984a9b
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
7 years agoApply ASLR 43/144543/1 accepted/tizen/4.0/unified/20170828.222742 accepted/tizen/unified/20170823.165947 submit/tizen/20170821.070104 submit/tizen/20170822.002714 submit/tizen/20170822.062753 submit/tizen_4.0/20170828.100006 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Seonah Moon [Thu, 17 Aug 2017 06:25:13 +0000 (15:25 +0900)]
Apply ASLR

Change-Id: I4dacf47792df35358241f3e4b135996685a8c8aa
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoFixed build errors 37/137537/1 accepted/tizen/4.0/unified/20170816.010558 accepted/tizen/unified/20170710.154650 submit/tizen/20170710.074033 submit/tizen_4.0/20170811.094300
Seonah Moon [Wed, 7 Jun 2017 06:29:12 +0000 (15:29 +0900)]
Fixed build errors

- Apply upstream patch to fix 64-bit printf formats
 (http://git.netfilter.org/iptables/commit/?id=1ec1fb7af08121d974416a1a23cd2d329fc0e29e)
- Add new *.so files

Change-Id: I2014027b3d5fbb0b9887350717f50af8b1d79d74
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoMerge "Revert "Revert "Update to 1.6.1""" into tizen
taesub kim [Thu, 6 Jul 2017 07:56:10 +0000 (07:56 +0000)]
Merge "Revert "Revert "Update to 1.6.1""" into tizen

7 years agoRevert "Revert "Update to 1.6.1"" 03/137503/1
taesub kim [Thu, 6 Jul 2017 07:21:59 +0000 (07:21 +0000)]
Revert "Revert "Update to 1.6.1""

This reverts commit eac60d08db79295c738899c6104410fb1a70aed7.

Change-Id: Ibd1685d0e50dab1d3536b46d0281cd8af2b33b8b

7 years agoMerge "Revert "Update to 1.6.1"" into tizen accepted/tizen/unified/20170609.204636 submit/tizen/20170609.063259
taesub kim [Fri, 9 Jun 2017 06:09:45 +0000 (06:09 +0000)]
Merge "Revert "Update to 1.6.1"" into tizen

7 years agoRevert "Update to 1.6.1" 73/133173/1
taesub kim [Fri, 9 Jun 2017 06:09:36 +0000 (06:09 +0000)]
Revert "Update to 1.6.1"

This reverts commit a4cc732a72c3b5d749117b739daf0fc677f96bf0.

Change-Id: Idad44fbfab8fe25207d5ef6fbcba9b7855f9b3e8

7 years agoRevert "Fixed build errors" 72/133172/1
taesub kim [Fri, 9 Jun 2017 06:09:08 +0000 (06:09 +0000)]
Revert "Fixed build errors"

This reverts commit 5140fc0ffedb7766d8ac656fcf2d9f35c7cc5efb.

Change-Id: I1b961d09e7c38badf97ac7c7982ee28a7ed03690

7 years agoFixed build errors 79/132679/3 submit/tizen/20170608.073736
Seonah Moon [Wed, 7 Jun 2017 06:29:12 +0000 (15:29 +0900)]
Fixed build errors

- Apply upstream patch to fix 64-bit printf formats
 (http://git.netfilter.org/iptables/commit/?id=1ec1fb7af08121d974416a1a23cd2d329fc0e29e)
- Add new *.so files

Change-Id: I355a293713a4f11b701c8b114f1d86cbd914699e
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoUpdate to 1.6.1 70/132670/1 upstream/1.6.1
Seonah Moon [Wed, 7 Jun 2017 05:54:35 +0000 (14:54 +0900)]
Update to 1.6.1

Change-Id: Iccec62c7650f8a67de2b5cecdaa4e6c4652e1f95
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
7 years agoImported Upstream version 1.6.1 07/132607/1
taesub kim [Wed, 7 Jun 2017 05:34:49 +0000 (14:34 +0900)]
Imported Upstream version 1.6.1

Change-Id: Ib0fe67a04e66a00e36633f0f3c9272a44a42e8aa

7 years agoChanged the path of license by using '%license' macro 66/120466/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170324.122825 accepted/tizen/ivi/20170324.111322 accepted/tizen/mobile/20170324.111030 accepted/tizen/tv/20170324.111152 accepted/tizen/unified/20170324.111403 accepted/tizen/wearable/20170324.111232 submit/tizen/20170324.043751 submit/tizen/20170324.072948 tizen_4.0.m1_release
Seonah Moon [Thu, 23 Mar 2017 05:28:08 +0000 (14:28 +0900)]
Changed the path of license by using '%license' macro

Change-Id: I1d15c9c869278a8d74289ea6eff3498bdff1c2a6

8 years agoSycn code from tizen 2.4 96/55596/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.142556 accepted/tizen/3.0.m2/tv/20170104.143250 accepted/tizen/3.0.m2/wearable/20170104.143632 accepted/tizen/3.0/common/20161114.110843 accepted/tizen/3.0/ivi/20161011.044032 accepted/tizen/3.0/mobile/20161015.033419 accepted/tizen/3.0/tv/20161016.004503 accepted/tizen/3.0/wearable/20161015.082634 accepted/tizen/ivi/20160218.024701 accepted/tizen/mobile/20151228.232742 accepted/tizen/tv/20151228.231823 accepted/tizen/unified/20170309.035730 accepted/tizen/wearable/20151228.231131 submit/tizen/20151228.080746 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000002 submit/tizen_3.0_mobile/20161015.000003 submit/tizen_3.0_tv/20161015.000002 submit/tizen_3.0_wearable/20161015.000002 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005 submit/tizen_unified/20170308.100413
Seonah Moon [Mon, 28 Dec 2015 05:35:30 +0000 (14:35 +0900)]
Sycn code from tizen 2.4

Change-Id: I974f50e1bb3493190ac63a79adae234ffac011b3
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
8 years agoModified license using SPDX license identifier 13/55113/1
taesub.kim [Tue, 22 Dec 2015 04:22:21 +0000 (13:22 +0900)]
Modified license using SPDX license identifier

Change-Id: Iefe9b260ba3b7e81ddcf932eaf35aecdc8240515
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
9 years agoupdate to version 1.4.21 sandbox/jobol/tizen tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20141205.161943 accepted/tizen/ivi/20141209.072714 accepted/tizen/mobile/20141208.023730 accepted/tizen/tv/20141210.130035 accepted/tizen/wearable/20150129.005752 submit/tizen/20141204.212234 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_wearable/20150127.000001 submit/tizen_wearable/20150128.000000 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
José Bollo [Mon, 10 Nov 2014 16:11:32 +0000 (17:11 +0100)]
update to version 1.4.21

Change-Id: I99743036399e0dd28b1548fc407d90059a981cfa
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
10 years agoUpdate to 1.4.19.1
Anas Nashif [Fri, 16 Aug 2013 11:34:51 +0000 (07:34 -0400)]
Update to 1.4.19.1

10 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 21:04:39 +0000 (00:04 +0300)]
resetting manifest requested domain to floor

10 years agoUpdate package groups
Anas Nashif [Mon, 18 Mar 2013 20:48:00 +0000 (13:48 -0700)]
Update package groups

10 years agoremove unused source file
Anas Nashif [Mon, 5 Nov 2012 17:26:14 +0000 (09:26 -0800)]
remove unused source file

10 years agobatch
Anas Nashif [Mon, 5 Nov 2012 17:17:25 +0000 (09:17 -0800)]
batch

10 years agoapply mktemp fix
Anas Nashif [Mon, 5 Nov 2012 17:17:13 +0000 (09:17 -0800)]
apply mktemp fix

10 years agoremove docs
Anas Nashif [Mon, 5 Nov 2012 17:16:52 +0000 (09:16 -0800)]
remove docs

10 years agoadd packaging
Anas Nashif [Mon, 5 Nov 2012 17:15:28 +0000 (09:15 -0800)]
add packaging

10 years agoImported Upstream version 1.4.21 sandbox/jobol/upstream upstream/1.4.21
José Bollo [Mon, 10 Nov 2014 16:03:15 +0000 (17:03 +0100)]
Imported Upstream version 1.4.21

11 years agoImported Upstream version 1.4.19.1 upstream/1.4.19.1
Anas Nashif [Fri, 16 Aug 2013 11:27:01 +0000 (07:27 -0400)]
Imported Upstream version 1.4.19.1

12 years agoImported Upstream version 1.4.14 upstream/1.4.14
Anas Nashif [Mon, 5 Nov 2012 17:15:27 +0000 (09:15 -0800)]
Imported Upstream version 1.4.14