He claimed Red Hat and the Free Software Foundation with trying to undermine U.S. copyright and patent law .